Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2014 15:16:40 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341591 - head/textproc/docbook-to-man
Message-ID:  <201401281516.s0SFGet6034368@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401281516.s0SFGet6034368>