Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2018 09:02:49 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r461289 - head/sysutils/uniutils
Message-ID:  <201802090902.w1992npH017580@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Feb  9 09:02:49 2018
New Revision: 461289
URL: https://svnweb.freebsd.org/changeset/ports/461289

Log:
  - Add LICENSE_FILE
  - Switch to USES=localbase
  - Switch to new test framework
  - Switch to options helpers
  - Cosmetic fixes
  
  Approved by:	portmgr blanket

Modified:
  head/sysutils/uniutils/Makefile

Modified: head/sysutils/uniutils/Makefile
==============================================================================
--- head/sysutils/uniutils/Makefile	Fri Feb  9 09:02:46 2018	(r461288)
+++ head/sysutils/uniutils/Makefile	Fri Feb  9 09:02:49 2018	(r461289)
@@ -11,14 +11,15 @@ MAINTAINER=	thierry@FreeBSD.org
 COMMENT=	Unicode Description Utilities
 
 LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 RUN_DEPENDS=	ascii2binary:converters/ascii2binary
 
 GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-LIBS+=		-L${LOCALBASE}/lib -lintl
-USES=		gettext
+USES=		gettext localbase
 
+LIBS+=		-lintl
+
 TESTFILES=	Test1.ann Test1.u Test2.ann Test2.u Test3.ann Test3.u	\
 		Test4.ann Test4.u Test5.ann Test5.u
 PORTDOCS=	AUTHORS NEWS README
@@ -26,18 +27,20 @@ PORTDOCS=	AUTHORS NEWS README
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
 pre-configure:
-	${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in
-	${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
+	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
 
-regression-test:
+do-test:
 	(cd ${WRKSRC} &&		\
 	./unidesc TestData/Test1.u &&	\
 	./uniname TestData/Test1.ann)
 
-post-install:
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${TESTFILES:S|^|${WRKSRC}/TestData/|} ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802090902.w1992npH017580>