svn commit: r328015 - head/archivers/gcpio

Christian Weisgerber naddy at FreeBSD.org
Mon Sep 23 15:43:52 UTC 2013


Author: naddy
Date: Mon Sep 23 15:43:51 2013
New Revision: 328015
URL: http://svnweb.freebsd.org/changeset/ports/328015

Log:
  Use stage and options helpers.

Modified:
  head/archivers/gcpio/Makefile
  head/archivers/gcpio/pkg-plist

Modified: head/archivers/gcpio/Makefile
==============================================================================
--- head/archivers/gcpio/Makefile	Mon Sep 23 15:42:03 2013	(r328014)
+++ head/archivers/gcpio/Makefile	Mon Sep 23 15:43:51 2013	(r328015)
@@ -11,7 +11,6 @@ PKGNAMEPREFIX=	g
 MAINTAINER=	naddy at FreeBSD.org
 COMMENT=	GNU cpio copies files to and from archives
 
-NO_STAGE=	yes
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--program-prefix=g \
@@ -19,18 +18,12 @@ CONFIGURE_ARGS=	--program-prefix=g \
 		--with-rmt=/etc/rmt
 
 INFO=		cpio
-MAN1=		gcpio.1
 
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
 
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
+NLS_USES=	gettext
+NLS_CONFIGURE_ENABLE=	nls
 
 regression-test: build
 	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check

Modified: head/archivers/gcpio/pkg-plist
==============================================================================
--- head/archivers/gcpio/pkg-plist	Mon Sep 23 15:42:03 2013	(r328014)
+++ head/archivers/gcpio/pkg-plist	Mon Sep 23 15:43:51 2013	(r328015)
@@ -1,5 +1,6 @@
 @comment $FreeBSD$
 bin/gcpio
+man/man1/gcpio.1.gz
 %%NLS%%share/locale/da/LC_MESSAGES/cpio.mo
 %%NLS%%share/locale/de/LC_MESSAGES/cpio.mo
 %%NLS%%share/locale/es/LC_MESSAGES/cpio.mo


More information about the svn-ports-head mailing list