From 9f12c9b88ef74ce6dca8c9f9d1d9d72a0648e3fb Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 28 Mar 2018 09:03:24 +0000 Subject: [PATCH] - Add LICENSE - Switch to options helpers - Switch to new test framework Approved by: portmgr blanket --- textproc/gsed/Makefile | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/textproc/gsed/Makefile b/textproc/gsed/Makefile index cf85d0169faa..b82999e8bbdf 100644 --- a/textproc/gsed/Makefile +++ b/textproc/gsed/Makefile @@ -11,19 +11,25 @@ PKGNAMEPREFIX= g MAINTAINER= johans@FreeBSD.org COMMENT= The GNU stream editor +LICENSE= GPLv3+ GFDL +LICENSE_COMB= multi +LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYING +LICENSE_FILE_GFDL= ${WRKSRC}/COPYING.DOC + GNU_CONFIGURE= yes CONFIGURE_ENV+= MAKEINFO="${MAKEINFO} --no-split" +TEST_TARGET= check USES= charsetfix makeinfo gmake PATCH_SUBDIRS= . doc lib sed DATADIR= ${PREFIX}/share/${PKGBASE} SAMP_FILES= binary*.sed dc.sed EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE} -PORTDOCS= AUTHORS BUGS COPYING COPYING.DOC NEWS README THANKS +PORTDOCS= AUTHORS BUGS NEWS README THANKS DOCSDIR= ${PREFIX}/share/doc/${PKGBASE} INFO= sed -OPTIONS_DEFINE= NLS DOCS +OPTIONS_DEFINE= NLS DOCS EXAMPLES OPTIONS_SUB= yes NLS_USES= gettext iconv @@ -44,15 +50,13 @@ post-configure: post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for f in ${SAMP_FILES} - @${INSTALL_DATA} ${WRKSRC}/testsuite/${f} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/testsuite/${f} ${STAGEDIR}${EXAMPLESDIR} .endfor + +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor -# Maintainer only -test: - @cd ${WRKSRC}/testsuite; ${MAKE} check - .include