Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2013 23:14:43 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334623 - head/misc/help2man
Message-ID:  <201311222314.rAMNEh1W011279@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Fri Nov 22 23:14:42 2013
New Revision: 334623
URL: http://svnweb.freebsd.org/changeset/ports/334623

Log:
  - Fix STAGEDIR support
  - Convert to new options helper
  - Bump PORTREVISION for package change

Modified:
  head/misc/help2man/Makefile

Modified: head/misc/help2man/Makefile
==============================================================================
--- head/misc/help2man/Makefile	Fri Nov 22 22:41:10 2013	(r334622)
+++ head/misc/help2man/Makefile	Fri Nov 22 23:14:42 2013	(r334623)
@@ -3,6 +3,7 @@
 
 PORTNAME=	help2man
 PORTVERSION=	1.43.3
+PORTREVISION=	1
 CATEGORIES=	misc
 MASTER_SITES=	GNU/${PORTNAME}
 
@@ -18,33 +19,27 @@ GNU_CONFIGURE=	yes
 USES=		gmake perl5
 
 INFO=		${PORTNAME}
-MAN1=		${PORTNAME}.1
 PLIST_FILES=	bin/${PORTNAME} \
 		man/man1/help2man.1.gz
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-BUILD_DEPENDS+=	p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
-RUN_DEPENDS+=	p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
-
-CFLAGS+=	-lintl
-MANLANG=	"" ${LANGS} ${LANGS_MTREE}
-USES+=		gettext
-
 LANGS=		de el eo fi fr hr it pl pt_BR ru sr sv uk vi
 LANGS_MTREE=	ja	# languages that already exist in BSD.local.dist
 
-PLIST_FILES+=	lib/bindtextdomain.so
+NLS_BUILD_DEPENDS=	p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
+NLS_CFLAGS=		-lintl
+NLS_CONFIGURE_ENABLE=	nls
+NLS_PLIST_FILES=	lib/bindtextdomain.so
+NLS_RUN_DEPENDS=	p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
+NLS_USES=		gettext
+
 .for lang in ${LANGS} ${LANGS_MTREE}
-PLIST_FILES+=	share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
+NLS_PLIST_FILES+=	man/${lang}/man1/help2man.1.gz \
+			share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
 .endfor
 .for lang in ${LANGS}
-PLIST_DIRSTRY+=	man/${lang}/man1 man/${lang}
+NLS_PLIST_DIRSTRY+=	man/${lang}/man1 \
+			man/${lang}
 .endfor
-.else
-CONFIGURE_ARGS=	--disable-nls
-.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e '/^pkglibdir/ s|/${PORTNAME}$$||' ${WRKSRC}/Makefile.in



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