summaryrefslogtreecommitdiff
path: root/editors/dte/Makefile
blob: a6f2952834c23faedcb4b6e09eb19fc6a10c2b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

PORTNAME=	dte
DISTVERSIONPREFIX=	v
DISTVERSION=	1.9.1
CATEGORIES=	editors

MAINTAINER=	dmgk@FreeBSD.org
COMMENT=	Small and easy to use console text editor

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		iconv gmake ncurses

USE_GITLAB=	yes
GL_ACCOUNT=	craigbarnes
GL_COMMIT=	cae7c45ea5a563c022001a54d1eee71c268f62b4

MAKEFILE=	${WRKSRC}/GNUmakefile
MAKE_ARGS=	V=1 prefix=${PREFIX} mandir=${PREFIX}/man

TEST_TARGET=	check

PLIST_FILES=	bin/dte \
		man/man1/dte.1.gz \
		man/man5/dte-syntax.5.gz \
		man/man5/dterc.5.gz \

PORTDOCS=	README.md keys.md

OPTIONS_DEFINE=	DOCS

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dte

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/keys.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>