1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/misc/help2man/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

46 lines
1.1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= help2man
PORTVERSION= 1.47.8
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= GNU
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Automatically generating simple manual pages from program output
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= NLS
USES= gmake localbase perl5 tar:xz
GNU_CONFIGURE= yes
INFO= ${PORTNAME}
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz
NLS_BUILD_DEPENDS= p5-Locale-gettext>=0:devel/p5-Locale-gettext
NLS_CONFIGURE_ENABLE= nls
NLS_PLIST_FILES= lib/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."
.for lang in de es fr pl pt_BR sv uk zh_CN
NLS_INFO+= ${PORTNAME}-${lang}
.endfor
.for lang in da de el eo es fi fr hr hu it ja nb pl pt_BR ru sr sv uk vi zh_CN
NLS_PLIST_FILES+= man/${lang}/man1/${PORTNAME}.1.gz \
share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor
post-patch:
@${REINPLACE_CMD} -e '/^pkglibdir/ s|/${PORTNAME}$$||' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>