svn commit: r341591 - head/textproc/docbook-to-man
Alexey Dokuchaev
danfe at FreeBSD.org
Tue Jan 28 15:16:40 UTC 2014
Author: danfe
Date: Tue Jan 28 15:16:39 2014
New Revision: 341591
URL: http://svnweb.freebsd.org/changeset/ports/341591
QAT: https://qat.redports.org/buildarchive/r341591/
Log:
Remove reference to alpha (long unsupported) and generally cleanup the port.
Modified:
head/textproc/docbook-to-man/Makefile
Modified: head/textproc/docbook-to-man/Makefile
==============================================================================
--- head/textproc/docbook-to-man/Makefile Tue Jan 28 15:08:47 2014 (r341590)
+++ head/textproc/docbook-to-man/Makefile Tue Jan 28 15:16:39 2014 (r341591)
@@ -11,51 +11,31 @@ DISTNAME= ${PORTNAME}
MAINTAINER= ports at FreeBSD.org
COMMENT= DocBook SGML DTD into nroff/troff -man macros converter
-# Global variables
-#
-.if defined(WITH_OPENJADE)
-RUN_DEPENDS= onsgmls:${PORTSDIR}/textproc/openjade
-.else
-RUN_DEPENDS= nsgmls:${PORTSDIR}/textproc/jade
-.endif
-RUN_DEPENDS+= ${LOCALBASE}/share/sgml/docbook:${PORTSDIR}/textproc/docbook
+RUN_DEPENDS= ${LOCALBASE}/share/sgml/docbook:${PORTSDIR}/textproc/docbook
USES= imake
XFREE86_HTML_MAN= no
-.include <bsd.port.pre.mk>
-
-# Local variables
-#
-
# There are two ports that satisfy the nsgmls requirement.
-# Jade is preferred.
+# Jade is preferred, but OpenJade can be selected if needed.
+OPTIONS_DEFINE= OPENJADE
+OPENJADE_DESC= Use OpenJade SGML/XML/DSSSL toolkit instead of Jade
-.if ${ARCH} == "alpha"
-WITH_OPENJADE= yes
-.endif
+.include <bsd.port.options.mk>
-.if defined(WITH_OPENJADE)
+.if ${PORT_OPTIONS:MOPENJADE}
+RUN_DEPENDS+= onsgmls:${PORTSDIR}/textproc/openjade
NSGMLS= onsgmls
.else
+RUN_DEPENDS+= nsgmls:${PORTSDIR}/textproc/jade
NSGMLS= nsgmls
.endif
-# Post extract
-#
-
-post-extract: move-instant.1
-
-move-instant.1:
+post-extract:
@${MV} ${WRKSRC}/Doc/instant.1 ${WRKSRC}/Instant/oinstant.man
-# Post patch
-#
-
-post-patch: patch-docbook-to-man
-
-patch-docbook-to-man:
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|;s|%%NSGMLS%%|${NSGMLS}|' \
- ${WRKSRC}/cmd/docbook-to-man.sh
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}| ; \
+ s|%%NSGMLS%%|${NSGMLS}|' ${WRKSRC}/cmd/docbook-to-man.sh
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-all
mailing list