diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2013-11-22 23:14:42 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2013-11-22 23:14:42 +0000 |
commit | 607a2c56314da9835cec7fa8b649020317163be7 (patch) | |
tree | be6b521aa37c2e1e5d272e61582bf933c26804f0 /misc/help2man/Makefile | |
parent | - Bump PORTREVISION to trigger fix in r334478 (diff) |
- Fix STAGEDIR support
- Convert to new options helper
- Bump PORTREVISION for package change
Notes
Notes:
svn path=/head/; revision=334623
Diffstat (limited to 'misc/help2man/Makefile')
-rw-r--r-- | misc/help2man/Makefile | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/misc/help2man/Makefile b/misc/help2man/Makefile index 77c90bda49aa..7308ee11271f 100644 --- a/misc/help2man/Makefile +++ b/misc/help2man/Makefile @@ -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 |