svn commit: r339525 - head/textproc/texi2html

Johan van Selst johans at FreeBSD.org
Sun Jan 12 17:39:20 UTC 2014


Author: johans
Date: Sun Jan 12 17:39:19 2014
New Revision: 339525
URL: http://svnweb.freebsd.org/changeset/ports/339525

Log:
  Enable stage support + minor cleanups

Modified:
  head/textproc/texi2html/Makefile
  head/textproc/texi2html/pkg-plist

Modified: head/textproc/texi2html/Makefile
==============================================================================
--- head/textproc/texi2html/Makefile	Sun Jan 12 17:18:59 2014	(r339524)
+++ head/textproc/texi2html/Makefile	Sun Jan 12 17:39:19 2014	(r339525)
@@ -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_PREF
 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>

Modified: head/textproc/texi2html/pkg-plist
==============================================================================
--- head/textproc/texi2html/pkg-plist	Sun Jan 12 17:18:59 2014	(r339524)
+++ head/textproc/texi2html/pkg-plist	Sun Jan 12 17:39:19 2014	(r339525)
@@ -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


More information about the svn-ports-all mailing list