Date: Fri, 5 Oct 2001 18:57:35 +0200 (CEST) From: Cyrille Lefevre <clefevre@citeweb.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/31060: New port: textproc/docbook-to-man Message-ID: <200110051657.f95GvZO86629@gits.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 31060 >Category: ports >Synopsis: New port: textproc/docbook-to-man >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Oct 05 10:00:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Cyrille Lefevre >Release: FreeBSD 4.4-RC i386 >Organization: ACME >Environment: System: FreeBSD gits 4.4-RC FreeBSD 4.4-RC #7: Thu Sep 20 12:40:17 CEST 2001 root@gits:/disk2/4.x-stable/src/sys/compile/CUSTOM i386 >Description: this port is required to build the manual pages of the -devel GnuPG port I'm submitting. >How-To-Repeat: n/a >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # docbook-to-man/Makefile # docbook-to-man/pkg-comment # docbook-to-man/pkg-descr # docbook-to-man/pkg-plist # docbook-to-man/distinfo # docbook-to-man/files/patch-cmd::Imakefile # docbook-to-man/files/patch-Transpec::Imakefile # docbook-to-man/files/patch-Instant::Imakefile # docbook-to-man/files/patch-cmd::docbook-to-man.sh # echo x - docbook-to-man/Makefile sed 's/^X//' >docbook-to-man/Makefile << 'END-of-docbook-to-man/Makefile' X# New ports collection makefile for: gnupg-devel X# Date created: 5 Oct 2001 X# Whom: Cyrille Lefevre <clefevre@citeweb.net> X# X# $FreeBSD$ X# X XPORTNAME= docbook-to-man XPORTVERSION= 1.0 XCATEGORIES= textproc XMASTER_SITES= http://www.oasis-open.org/docbook/tools/dtm XDISTNAME= ${PORTNAME} X XMAINTAINER= clefevre@citeweb.net X X.include <bsd.port.pre.mk> X X# Global variables X# X X# There are two ports that satisfy the nsgmls requirement. X# Jade is preferred, but it currently doesn't compile on 2.1.x X# system, so use sp in that case. X X.if ${MACHINE_ARCH} == "alpha" XWITH_OPENJADE= yes X.endif X X.if ${OSVERSION} < 220000 XRUN_DEPENDS= nsgmls:${PORTSDIR}/textproc/sp X.elif defined(WITH_OPENJADE) XRUN_DEPENDS= onsgmls:${PORTSDIR}/textproc/openjade X.else XRUN_DEPENDS= nsgmls:${PORTSDIR}/textproc/jade X.endif XRUN_DEPENDS+= ${PREFIX}/share/sgml/docbook:${PORTSDIR}/textproc/docbook X XUSE_IMAKE= yes XUSE_X_PREFIX= no XXFREE86_HTML_MAN= no X XMAN1= oinstant.1 X X# Local variables X# X X.if defined(WITH_OPENJADE) XNSGMLS= onsgmls X.else XNSGMLS= nsgmls X.endif X X# Post extract X# X Xpost-extract: move-instant.1 X Xmove-instant.1: X @${MV} ${WRKSRC}/Doc/instant.1 ${WRKSRC}/Instant/oinstant.man X X# Post patch X# X Xpost-patch: patch-docbook-to-man X Xpatch-docbook-to-man: X @${PERL} -pi.fbsd -e 's|%%PREFIX%%|${PREFIX}|;s|%%NSGMLS%%|${NSGMLS}|' \ X ${WRKSRC}/cmd/docbook-to-man.sh X X.include <bsd.port.post.mk> END-of-docbook-to-man/Makefile echo x - docbook-to-man/pkg-comment sed 's/^X//' >docbook-to-man/pkg-comment << 'END-of-docbook-to-man/pkg-comment' XA DocBook SGML DTD into nroff/troff -man macros converter END-of-docbook-to-man/pkg-comment echo x - docbook-to-man/pkg-descr sed 's/^X//' >docbook-to-man/pkg-descr << 'END-of-docbook-to-man/pkg-descr' XA batch converter that transforms UNIX-style manpages from the XDocBook SGML DTD into nroff/troff -man macros. X XWWW: http://www.oasis-open.org/docbook/tools/dtm/ END-of-docbook-to-man/pkg-descr echo x - docbook-to-man/pkg-plist sed 's/^X//' >docbook-to-man/pkg-plist << 'END-of-docbook-to-man/pkg-plist' X@comment $FreeBSD$ Xbin/docbook-to-man Xbin/oinstant Xshare/sgml/otranspec/docbook-to-man.ts Xshare/sgml/otranspec/roff.cmap Xshare/sgml/otranspec/roff.sdata END-of-docbook-to-man/pkg-plist echo x - docbook-to-man/distinfo sed 's/^X//' >docbook-to-man/distinfo << 'END-of-docbook-to-man/distinfo' XMD5 (docbook-to-man.tar.gz) = b28ddaaa8eb4b775100c67fd1205240a END-of-docbook-to-man/distinfo echo x - docbook-to-man/files/patch-cmd::Imakefile sed 's/^X//' >docbook-to-man/files/patch-cmd::Imakefile << 'END-of-docbook-to-man/files/patch-cmd::Imakefile' X--- cmd/Imakefile.orig Mon Jun 17 05:50:30 1996 X+++ cmd/Imakefile Fri Oct 5 18:18:22 2001 X@@ -1,4 +1,5 @@ X-ROOT = /usr/local X+PREFIX ?= /usr/local X+ROOT = ${PREFIX} X BINDIR = $(ROOT)/bin X X all:: END-of-docbook-to-man/files/patch-cmd::Imakefile echo x - docbook-to-man/files/patch-Transpec::Imakefile sed 's/^X//' >docbook-to-man/files/patch-Transpec::Imakefile << 'END-of-docbook-to-man/files/patch-Transpec::Imakefile' X--- Transpec/Imakefile.orig Mon Jun 17 05:50:28 1996 X+++ Transpec/Imakefile Fri Oct 5 18:20:17 2001 X@@ -1,5 +1,6 @@ X-ROOT = /usr/local X-TPTLIB = $(ROOT)/lib/tpt X+PREFIX ?= /usr/local X+ROOT = ${PREFIX} X+TPTLIB = $(ROOT)/share/sgml/otranspec X X all:: X END-of-docbook-to-man/files/patch-Transpec::Imakefile echo x - docbook-to-man/files/patch-Instant::Imakefile sed 's/^X//' >docbook-to-man/files/patch-Instant::Imakefile << 'END-of-docbook-to-man/files/patch-Instant::Imakefile' X--- Instant/Imakefile.orig Mon Jun 17 05:50:29 1996 X+++ Instant/Imakefile Fri Oct 5 18:18:22 2001 X@@ -1,14 +1,18 @@ X #define IHaveSubdirs X #define PassCDebugFlags X+#undef BuildInstallHtmlManPage X+#define BuildInstallHtmlManPage(x,y,z) /**/ X X SUBDIRS = tptregexp X X-ROOT = /usr/local X+PREFIX ?= /usr/local X+ROOT = ${PREFIX} X+MANPATH = ${ROOT}/man X BINDIR = $(ROOT)/bin X X INCLUDES = -Itptregexp X LOCAL_LIBRARIES = -Ltptregexp -ltptregexp X-TPTLIB = $(ROOT)/lib/tpt X+TPTLIB = $(ROOT)/share/sgml/otranspec X DEFINES = -DDEF_TPT_LIB=\"$(TPTLIB)\" X X SRCS = main.c util.c info.c translate.c traninit.c tranvar.c tables.c \ X@@ -19,4 +23,4 @@ X MakeSubdirs($(SUBDIRS)) X DependSubdirs($(SUBDIRS)) X X-ComplexProgramTarget(instant) X+ComplexProgramTarget(oinstant) END-of-docbook-to-man/files/patch-Instant::Imakefile echo x - docbook-to-man/files/patch-cmd::docbook-to-man.sh sed 's/^X//' >docbook-to-man/files/patch-cmd::docbook-to-man.sh << 'END-of-docbook-to-man/files/patch-cmd::docbook-to-man.sh' X--- cmd/docbook-to-man.sh.orig Mon Jun 17 05:50:30 1996 X+++ cmd/docbook-to-man.sh Fri Oct 5 18:18:22 2001 X@@ -40,9 +40,9 @@ X # ***** change the following paths if your installation of nsgmls and / or X # ***** DocBook isn't into the default places. X X-ROOT=/usr/local X-SGMLS=$ROOT/lib/sgml X-DOCBOOK=$SGMLS/Davenport/dtd X+ROOT=%%PREFIX%% X+SGMLS=$ROOT/share/sgml X+DOCBOOK=$SGMLS/docbook X X X # ***** modify the following line (to "=false") if you're not using the X@@ -51,19 +51,16 @@ X doElanPSInclude=true X X X- X # Everything below this line should be pretty standard and not require X # modification. X X #ulimit -c unlimited X X PARSER=nsgmls X-INSTANT=instant X+INSTANT=oinstant X INSTANT_OPT=-d X X-CATALOG=$DOCBOOK/docbook.cat X-DECL=$DOCBOOK/docbook.dcl X-#PROLOG=$DOCBOOK/docbook.prolog X+CATALOG=$DOCBOOK/catalog X X error=false X X@@ -159,17 +156,8 @@ X .ds f4\" X ! X X- X-#if [ ! -f $PROLOG ] X-#then cat > $PROLOG <<! X-#<!DOCTYPE RefEntry PUBLIC "-//Davenport//DTD DocBook V2.4.1//EN" [ X-#<!ENTITY npzwc ""> X-#]> X-#! X-#fi X- X (cat /tmp/dtm.$$.psinc; X- $PARSER -gl -m$CATALOG $DECL $INSTANCE | X+ $PARSER -gl -c $CATALOG $INSTANCE | X $INSTANT $INSTANT_OPT -croff.cmap -sroff.sdata -tdocbook-to-man.ts) X X-rm -f /tmp/dtm.$$.psinc X+rm -f /tmp/dtm.$$.psinc END-of-docbook-to-man/files/patch-cmd::docbook-to-man.sh exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110051657.f95GvZO86629>