summaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-10-07 16:33:04 +0000
committerlioux <lioux@FreeBSD.org>2001-10-07 16:33:04 +0000
commitd1281aab34ca9dacfcb72e57b9d1c1879116d9b2 (patch)
tree2ffb558fa40c82630d50ef36de9bc6cead11297e /textproc
parent8f290d6e42bc4cb2e4b1293d26a3cc23a351983f (diff)
downloadFreeBSD-ports-d1281aab34ca9dacfcb72e57b9d1c1879116d9b2.zip
FreeBSD-ports-d1281aab34ca9dacfcb72e57b9d1c1879116d9b2.tar.gz
New port docbook-to-man version 1.0: A DocBook SGML DTD into
nroff/troff -man macros converter PR: 31060 Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/docbook-to-man/Makefile70
-rw-r--r--textproc/docbook-to-man/distinfo1
-rw-r--r--textproc/docbook-to-man/files/patch-Instant::Imakefile29
-rw-r--r--textproc/docbook-to-man/files/patch-Transpec::Imakefile11
-rw-r--r--textproc/docbook-to-man/files/patch-cmd::Imakefile9
-rw-r--r--textproc/docbook-to-man/files/patch-cmd::docbook-to-man.sh57
-rw-r--r--textproc/docbook-to-man/pkg-comment1
-rw-r--r--textproc/docbook-to-man/pkg-descr4
-rw-r--r--textproc/docbook-to-man/pkg-plist6
10 files changed, 189 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index c887c6b..81a6ef8 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -31,6 +31,7 @@
SUBDIR += docbook-400
SUBDIR += docbook-410
SUBDIR += docbook-tdg
+ SUBDIR += docbook-to-man
SUBDIR += docbook-xml
SUBDIR += docproj
SUBDIR += dsssl-docbook-cygnus
diff --git a/textproc/docbook-to-man/Makefile b/textproc/docbook-to-man/Makefile
new file mode 100644
index 0000000..2170087
--- /dev/null
+++ b/textproc/docbook-to-man/Makefile
@@ -0,0 +1,70 @@
+# New ports collection makefile for: gnupg-devel
+# Date created: 5 Oct 2001
+# Whom: Cyrille Lefevre <clefevre@citeweb.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= docbook-to-man
+PORTVERSION= 1.0
+CATEGORIES= textproc
+MASTER_SITES= http://www.oasis-open.org/docbook/tools/dtm/
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= clefevre@citeweb.net
+
+.include <bsd.port.pre.mk>
+
+# Global variables
+#
+
+# There are two ports that satisfy the nsgmls requirement.
+# Jade is preferred, but it currently doesn't compile on 2.1.x
+# system, so use sp in that case.
+
+.if ${MACHINE_ARCH} == "alpha"
+WITH_OPENJADE= yes
+.endif
+
+.if ${OSVERSION} < 220000
+RUN_DEPENDS= nsgmls:${PORTSDIR}/textproc/sp
+.elif 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
+
+USE_IMAKE= yes
+USE_X_PREFIX= no
+XFREE86_HTML_MAN= no
+
+MAN1= oinstant.1
+
+# Local variables
+#
+
+.if defined(WITH_OPENJADE)
+NSGMLS= onsgmls
+.else
+NSGMLS= nsgmls
+.endif
+
+# Post extract
+#
+
+post-extract: move-instant.1
+
+move-instant.1:
+ @${MV} ${WRKSRC}/Doc/instant.1 ${WRKSRC}/Instant/oinstant.man
+
+# Post patch
+#
+
+post-patch: patch-docbook-to-man
+
+patch-docbook-to-man:
+ @${PERL} -pi.fbsd -e 's|%%PREFIX%%|${PREFIX}|;s|%%NSGMLS%%|${NSGMLS}|' \
+ ${WRKSRC}/cmd/docbook-to-man.sh
+
+.include <bsd.port.post.mk>
diff --git a/textproc/docbook-to-man/distinfo b/textproc/docbook-to-man/distinfo
new file mode 100644
index 0000000..f620928
--- /dev/null
+++ b/textproc/docbook-to-man/distinfo
@@ -0,0 +1 @@
+MD5 (docbook-to-man.tar.gz) = b28ddaaa8eb4b775100c67fd1205240a
diff --git a/textproc/docbook-to-man/files/patch-Instant::Imakefile b/textproc/docbook-to-man/files/patch-Instant::Imakefile
new file mode 100644
index 0000000..91ea4ac
--- /dev/null
+++ b/textproc/docbook-to-man/files/patch-Instant::Imakefile
@@ -0,0 +1,29 @@
+--- Instant/Imakefile.orig Mon Jun 17 05:50:29 1996
++++ Instant/Imakefile Fri Oct 5 18:18:22 2001
+@@ -1,14 +1,18 @@
+ #define IHaveSubdirs
+ #define PassCDebugFlags
++#undef BuildInstallHtmlManPage
++#define BuildInstallHtmlManPage(x,y,z) /**/
+
+ SUBDIRS = tptregexp
+
+-ROOT = /usr/local
++PREFIX ?= /usr/local
++ROOT = ${PREFIX}
++MANPATH = ${ROOT}/man
+ BINDIR = $(ROOT)/bin
+
+ INCLUDES = -Itptregexp
+ LOCAL_LIBRARIES = -Ltptregexp -ltptregexp
+-TPTLIB = $(ROOT)/lib/tpt
++TPTLIB = $(ROOT)/share/sgml/otranspec
+ DEFINES = -DDEF_TPT_LIB=\"$(TPTLIB)\"
+
+ SRCS = main.c util.c info.c translate.c traninit.c tranvar.c tables.c \
+@@ -19,4 +23,4 @@
+ MakeSubdirs($(SUBDIRS))
+ DependSubdirs($(SUBDIRS))
+
+-ComplexProgramTarget(instant)
++ComplexProgramTarget(oinstant)
diff --git a/textproc/docbook-to-man/files/patch-Transpec::Imakefile b/textproc/docbook-to-man/files/patch-Transpec::Imakefile
new file mode 100644
index 0000000..0944099
--- /dev/null
+++ b/textproc/docbook-to-man/files/patch-Transpec::Imakefile
@@ -0,0 +1,11 @@
+--- Transpec/Imakefile.orig Mon Jun 17 05:50:28 1996
++++ Transpec/Imakefile Fri Oct 5 18:20:17 2001
+@@ -1,5 +1,6 @@
+-ROOT = /usr/local
+-TPTLIB = $(ROOT)/lib/tpt
++PREFIX ?= /usr/local
++ROOT = ${PREFIX}
++TPTLIB = $(ROOT)/share/sgml/otranspec
+
+ all::
+
diff --git a/textproc/docbook-to-man/files/patch-cmd::Imakefile b/textproc/docbook-to-man/files/patch-cmd::Imakefile
new file mode 100644
index 0000000..7104dc4
--- /dev/null
+++ b/textproc/docbook-to-man/files/patch-cmd::Imakefile
@@ -0,0 +1,9 @@
+--- cmd/Imakefile.orig Mon Jun 17 05:50:30 1996
++++ cmd/Imakefile Fri Oct 5 18:18:22 2001
+@@ -1,4 +1,5 @@
+-ROOT = /usr/local
++PREFIX ?= /usr/local
++ROOT = ${PREFIX}
+ BINDIR = $(ROOT)/bin
+
+ all::
diff --git a/textproc/docbook-to-man/files/patch-cmd::docbook-to-man.sh b/textproc/docbook-to-man/files/patch-cmd::docbook-to-man.sh
new file mode 100644
index 0000000..462f070
--- /dev/null
+++ b/textproc/docbook-to-man/files/patch-cmd::docbook-to-man.sh
@@ -0,0 +1,57 @@
+--- cmd/docbook-to-man.sh.orig Mon Jun 17 05:50:30 1996
++++ cmd/docbook-to-man.sh Fri Oct 5 18:18:22 2001
+@@ -40,9 +40,9 @@
+ # ***** change the following paths if your installation of nsgmls and / or
+ # ***** DocBook isn't into the default places.
+
+-ROOT=/usr/local
+-SGMLS=$ROOT/lib/sgml
+-DOCBOOK=$SGMLS/Davenport/dtd
++ROOT=%%PREFIX%%
++SGMLS=$ROOT/share/sgml
++DOCBOOK=$SGMLS/docbook
+
+
+ # ***** modify the following line (to "=false") if you're not using the
+@@ -51,19 +51,16 @@
+ doElanPSInclude=true
+
+
+-
+ # Everything below this line should be pretty standard and not require
+ # modification.
+
+ #ulimit -c unlimited
+
+ PARSER=nsgmls
+-INSTANT=instant
++INSTANT=oinstant
+ INSTANT_OPT=-d
+
+-CATALOG=$DOCBOOK/docbook.cat
+-DECL=$DOCBOOK/docbook.dcl
+-#PROLOG=$DOCBOOK/docbook.prolog
++CATALOG=$DOCBOOK/catalog
+
+ error=false
+
+@@ -159,17 +156,8 @@
+ .ds f4\"
+ !
+
+-
+-#if [ ! -f $PROLOG ]
+-#then cat > $PROLOG <<!
+-#<!DOCTYPE RefEntry PUBLIC "-//Davenport//DTD DocBook V2.4.1//EN" [
+-#<!ENTITY npzwc "">
+-#]>
+-#!
+-#fi
+-
+ (cat /tmp/dtm.$$.psinc;
+- $PARSER -gl -m$CATALOG $DECL $INSTANCE |
++ $PARSER -gl -c $CATALOG $INSTANCE |
+ $INSTANT $INSTANT_OPT -croff.cmap -sroff.sdata -tdocbook-to-man.ts)
+
+-rm -f /tmp/dtm.$$.psinc
++rm -f /tmp/dtm.$$.psinc
diff --git a/textproc/docbook-to-man/pkg-comment b/textproc/docbook-to-man/pkg-comment
new file mode 100644
index 0000000..61069f5
--- /dev/null
+++ b/textproc/docbook-to-man/pkg-comment
@@ -0,0 +1 @@
+A DocBook SGML DTD into nroff/troff -man macros converter
diff --git a/textproc/docbook-to-man/pkg-descr b/textproc/docbook-to-man/pkg-descr
new file mode 100644
index 0000000..fc2f025
--- /dev/null
+++ b/textproc/docbook-to-man/pkg-descr
@@ -0,0 +1,4 @@
+A batch converter that transforms UNIX-style manpages from the
+DocBook SGML DTD into nroff/troff -man macros.
+
+WWW: http://www.oasis-open.org/docbook/tools/dtm/
diff --git a/textproc/docbook-to-man/pkg-plist b/textproc/docbook-to-man/pkg-plist
new file mode 100644
index 0000000..ea2c3c3
--- /dev/null
+++ b/textproc/docbook-to-man/pkg-plist
@@ -0,0 +1,6 @@
+@comment $FreeBSD$
+bin/docbook-to-man
+bin/oinstant
+share/sgml/otranspec/docbook-to-man.ts
+share/sgml/otranspec/roff.cmap
+share/sgml/otranspec/roff.sdata
OpenPOWER on IntegriCloud