aboutsummaryrefslogtreecommitdiff
path: root/misc/help2man/Makefile
blob: 55123c2719acd1e5689df0329fa2b46de5bef809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: ijliao

PORTNAME=	help2man
PORTVERSION=	1.48.2
CATEGORIES=	misc
MASTER_SITES=	GNU

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Automatically generating simple manual pages from program output

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		gmake localbase perl5 tar:xz

GNU_CONFIGURE=	yes

INFO=		help2man
PLIST_FILES=	bin/help2man \
		man/man1/help2man.1.gz

OPTIONS_DEFINE=	NLS

NLS_BUILD_DEPENDS=	p5-Locale-gettext>=0:devel/p5-Locale-gettext
NLS_CONFIGURE_ENABLE=	nls
NLS_PLIST_FILES=	lib/help2man/bindtextdomain.so
NLS_RUN_DEPENDS=	p5-Locale-gettext>=0:devel/p5-Locale-gettext
NLS_USES=		gettext
NLS_VARS=		CONFIGURE_FAIL_MESSAGE="Rebuild lang/${PERL_PORT} and devel/p5-Locale-gettext manually before contacting maintainer."
NLS_VARS_OFF=		NO_ARCH=yes

.for lang in de es fr pl pt_BR sr sv ta uk zh_CN
NLS_INFO+=		help2man-${lang}
.endfor

.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
NLS_PLIST_FILES+=	man/${lang}/man1/help2man.1.gz \
			share/locale/${lang}/LC_MESSAGES/help2man.mo
.endfor

.include <bsd.port.mk>