View | Details | Raw Unified | Return to bug 243621
Collapse All | Expand All

(-)misc/help2man/Makefile (-4 / +5 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	help2man
4
PORTNAME=	help2man
5
PORTVERSION=	1.47.12
5
PORTVERSION=	1.47.12
6
PORTREVISION=	1
6
CATEGORIES=	misc
7
CATEGORIES=	misc
7
MASTER_SITES=	GNU
8
MASTER_SITES=	GNU
8
9
Lines 24-36 OPTIONS_DEFINE= NLS Link Here
24
25
25
NLS_BUILD_DEPENDS=	p5-Locale-gettext>=0:devel/p5-Locale-gettext
26
NLS_BUILD_DEPENDS=	p5-Locale-gettext>=0:devel/p5-Locale-gettext
26
NLS_CONFIGURE_ENABLE=	nls
27
NLS_CONFIGURE_ENABLE=	nls
27
NLS_PLIST_FILES=	lib/bindtextdomain.so
28
NLS_PLIST_FILES=	lib/help2man/bindtextdomain.so
28
NLS_RUN_DEPENDS=	p5-Locale-gettext>=0:devel/p5-Locale-gettext
29
NLS_RUN_DEPENDS=	p5-Locale-gettext>=0:devel/p5-Locale-gettext
29
NLS_USES=		gettext
30
NLS_USES=		gettext
30
NLS_VARS=		CONFIGURE_FAIL_MESSAGE="Rebuild lang/${PERL_PORT} and devel/p5-Locale-gettext manually before contacting maintainer."
31
NLS_VARS=		CONFIGURE_FAIL_MESSAGE="Rebuild lang/${PERL_PORT} and devel/p5-Locale-gettext manually before contacting maintainer."
31
32
32
.for lang in de es fr pl pt_BR sv ta uk zh_CN
33
.for lang in de es fr pl pt_BR sv ta uk zh_CN
33
NLS_INFO+=		help2man-${lang}
34
NLS_INFO+=	help2man-${lang}
34
.endfor
35
.endfor
35
36
36
.for lang in da de el eo es fi fr hr hu it ja nb pl pt_BR ru sr sv ta uk vi zh_CN
37
.for lang in da de el eo es fi fr hr hu it ja nb pl pt_BR ru sr sv ta uk vi zh_CN
Lines 38-44 NLS_PLIST_FILES+= man/${lang}/man1/help2man.1.gz \ Link Here
38
			share/locale/${lang}/LC_MESSAGES/help2man.mo
39
			share/locale/${lang}/LC_MESSAGES/help2man.mo
39
.endfor
40
.endfor
40
41
41
post-patch:
42
post-install-NLS-off:
42
	@${REINPLACE_CMD} -e '/^pkglibdir/ s|/help2man$$||' ${WRKSRC}/Makefile.in
43
	@${RMDIR} ${STAGEDIR}${PREFIX}/lib/help2man
43
44
44
.include <bsd.port.mk>
45
.include <bsd.port.mk>

Return to bug 243621