aboutsummaryrefslogtreecommitdiff
path: root/textproc/texi2html
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2014-01-12 17:39:19 +0000
committerJohan van Selst <johans@FreeBSD.org>2014-01-12 17:39:19 +0000
commit0bdfee40a8ffe3f2558fe74a6b2cbef9ec21fdad (patch)
tree4096952edf0275c7530e16b8e71762a6851c7368 /textproc/texi2html
parent72bf1ca32fb82e70ad3148c008d0828b7a910efa (diff)
downloadports-0bdfee40a8ffe3f2558fe74a6b2cbef9ec21fdad.tar.gz
ports-0bdfee40a8ffe3f2558fe74a6b2cbef9ec21fdad.zip
Notes
Diffstat (limited to 'textproc/texi2html')
-rw-r--r--textproc/texi2html/Makefile27
-rw-r--r--textproc/texi2html/pkg-plist1
2 files changed, 8 insertions, 20 deletions
diff --git a/textproc/texi2html/Makefile b/textproc/texi2html/Makefile
index 4055d1a932ce..0022d7808cf2 100644
--- a/textproc/texi2html/Makefile
+++ b/textproc/texi2html/Makefile
@@ -14,10 +14,14 @@ COMMENT= Texinfo to HTML converter
GNU_CONFIGURE= yes
CONFIGURE_ENV= PERL=${PERL}
CONFIGURE_ARGS= --disable-multiplatform
-USES= gmake perl5
+USES= gmake perl5 shebangfix
USE_BZIP2= yes
+SHEBANG_FILES= *.pl
OPTIONS_DEFINE= NLS DOCS
+OPTIONS_SUB= yes
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE=nls translations
PROGRAM_PREFIX?=
PLIST_SUB= PROGRAM_PREFIX=${PROGRAM_PREFIX} \
@@ -27,21 +31,8 @@ PLIST_SUB= PROGRAM_PREFIX=${PROGRAM_PREFIX} \
CONFIGURE_ARGS= --program-prefix="${PROGRAM_PREFIX}"
.endif
-MAN1= ${PROGRAM_PREFIX}texi2html.1
INFO= texi2html
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-CONFIGURE_ARGS+=--enable-nls --enable-translations
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls --disable-translations
-PLIST_SUB+= NLS="@comment "
-.endif
-
pre-everything::
@${ECHO} ""
@${ECHO} "You can define the PROGRAM_PREFIX variable to change the name that"
@@ -49,12 +40,8 @@ pre-everything::
@${ECHO} ""
post-patch:
- @${REINPLACE_CMD} -e 's/^translations.pl/_&/' ${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} -e '/^install-data/s|i18n|&/en.thl|' ${WRKSRC}/Makefile.in
-.if empty(PORT_OPTIONS:MDOCS)
- @${REINPLACE_CMD} -e 's| install-texinfohtmlDATA||g' ${WRKSRC}/doc/Makefile.in
-.endif
- @${REINPLACE_CMD} -e '1s|/usr/bin/perl|${PERL}|' ${WRKSRC}/*.pl
+ @${REINPLACE_CMD} -e 's/^translations.pl/_&/' \
+ -e '/^install-data/s|i18n|&/en.thl|' ${WRKSRC}/Makefile.in
@${CHMOD} +x ${WRKSRC}/install-sh
.include <bsd.port.mk>
diff --git a/textproc/texi2html/pkg-plist b/textproc/texi2html/pkg-plist
index d427442d9065..f5b31d19b150 100644
--- a/textproc/texi2html/pkg-plist
+++ b/textproc/texi2html/pkg-plist
@@ -1,5 +1,6 @@
@comment $FreeBSD$
bin/%%PROGRAM_PREFIX%%texi2html
+man/man1/%%PROGRAM_PREFIX%%texi2html.1.gz
%%DATADIR%%/i18n/de.thl
%%DATADIR%%/i18n/en.thl
%%DATADIR%%/i18n/es.thl