Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2014 07:50:40 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340804 - head/devel/popt
Message-ID:  <201401230750.s0N7oeuY016298@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jan 23 07:50:39 2014
New Revision: 340804
URL: http://svnweb.freebsd.org/changeset/ports/340804
QAT: https://qat.redports.org/buildarchive/r340804/

Log:
  Support stage
  Use options helpers

Modified:
  head/devel/popt/Makefile
  head/devel/popt/pkg-plist

Modified: head/devel/popt/Makefile
==============================================================================
--- head/devel/popt/Makefile	Thu Jan 23 05:29:56 2014	(r340803)
+++ head/devel/popt/Makefile	Thu Jan 23 07:50:39 2014	(r340804)
@@ -9,6 +9,8 @@ MASTER_SITES=	http://rpm5.org/files/popt
 MAINTAINER=	jpaetzel@FreeBSD.org
 COMMENT=	A getopt(3) like library with a number of enhancements, from Redhat
 
+OPTIONS_DEFINE=	NLS
+
 CONFIGURE_ARGS=	${ICONV_CONFIGURE_ARG} \
 		--program-prefix=""
 CPPFLAGS+=	-I${LOCALBASE}/include
@@ -18,18 +20,8 @@ USE_AUTOTOOLS=	libtool
 USES=		pathfix iconv
 USE_LDCONFIG=	yes
 
-MAN3=		popt.3
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-CONFIGURE_ARGS+=--enable-nls
-PLIST_SUB+=	NLS=""
-USES+=		gettext
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES=	gettext
+OPTIONS_SUB=	yes
 
 .include <bsd.port.mk>

Modified: head/devel/popt/pkg-plist
==============================================================================
--- head/devel/popt/pkg-plist	Thu Jan 23 05:29:56 2014	(r340803)
+++ head/devel/popt/pkg-plist	Thu Jan 23 07:50:39 2014	(r340804)
@@ -4,6 +4,7 @@ lib/libpopt.la
 lib/libpopt.so
 lib/libpopt.so.0
 libdata/pkgconfig/popt.pc
+man/man3/popt.3.gz
 %%NLS%%share/locale/cs/LC_MESSAGES/popt.mo
 %%NLS%%share/locale/da/LC_MESSAGES/popt.mo
 %%NLS%%share/locale/de/LC_MESSAGES/popt.mo



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