diff options
author | agc <agc@pkgsrc.org> | 2001-04-27 12:27:06 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-04-27 12:27:06 +0000 |
commit | 3dbb7fb714923a74ac4b143ed5098d1593a0e7cc (patch) | |
tree | d30d6ee6ccb999239a5274a86ff9e809778b1b36 | |
parent | f0dad842b72e5a760885a2bf84d0620683ffd6eb (diff) | |
download | pkgsrc-3dbb7fb714923a74ac4b143ed5098d1593a0e7cc.tar.gz |
Initial import of troffcvt-1.04 into the packages collection.
Provided in PR 12584 by Ben Collver (collver@linuxfreemail.com).
troffcvt is a translator that turns troff input into a form that can
be more easily processed. The troffcvt distribution comes with
postprocessors that turn troffcvt into various destination formats
such as HTML (Hypertext Markup Language), RTF (Rich Text Format) or
plain text.
-rw-r--r-- | textproc/troffcvt/Makefile | 33 | ||||
-rw-r--r-- | textproc/troffcvt/distinfo | 10 | ||||
-rw-r--r-- | textproc/troffcvt/patches/patch-aa | 16 | ||||
-rw-r--r-- | textproc/troffcvt/patches/patch-ab | 22 | ||||
-rw-r--r-- | textproc/troffcvt/patches/patch-ac | 14 | ||||
-rw-r--r-- | textproc/troffcvt/patches/patch-ad | 56 | ||||
-rw-r--r-- | textproc/troffcvt/patches/patch-ae | 14 | ||||
-rw-r--r-- | textproc/troffcvt/patches/patch-af | 34 | ||||
-rw-r--r-- | textproc/troffcvt/pkg/DESCR | 5 | ||||
-rw-r--r-- | textproc/troffcvt/pkg/PLIST | 35 |
10 files changed, 239 insertions, 0 deletions
diff --git a/textproc/troffcvt/Makefile b/textproc/troffcvt/Makefile new file mode 100644 index 00000000000..453fae2c03f --- /dev/null +++ b/textproc/troffcvt/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/04/27 12:27:06 agc Exp $ +# + +DISTNAME= troffcvt-1.04 +CATEGORIES= textproc +MASTER_SITES= http://www.primate.wisc.edu/software/troffcvt/ + +MAINTAINER= collver@linuxfreemail.com +HOMEPAGE= http://www.primate.wisc.edu/software/troffcvt/ +COMMENT= Troff/groff to RTF/HTML/TEXT converter + +BUILD_DEPENDS+= libts-1.08:../../devel/libts +BUILD_DEPENDS+= libmemmgr-1.04:../../devel/libmemmgr +BUILD_DEPENDS+= libportlib-1.01:../../devel/libportlib + +#WRKSRC= ${WRKDIR}/rtf +INSTALL_TARGET= install install.man + +post-patch: + for i in `${FIND} ${WRKSRC} -name Makefile`; do \ + ${MV} $$i $$i.bak;\ + ${SED} <$$i.bak >$$i \ + -e "s| -Dsun -DSVR4||" \ + -e "s| -lsocket -lnsl -lw||" \ + -e "s| -Xc||" \ + -e "s|/usr/include/sys/feature_tests.h||" \ + -e "s|/usr/tmp|/tmp|g" \ + -e "s|/usr/ucb/install|${INSTALL}|" \ + -e "s|/usr/local|${PREFIX}|g" \ + -e "s|/usr/local/man|${PREFIX}/man|" ;\ + done + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/troffcvt/distinfo b/textproc/troffcvt/distinfo new file mode 100644 index 00000000000..66a11e3071a --- /dev/null +++ b/textproc/troffcvt/distinfo @@ -0,0 +1,10 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/04/27 12:27:06 agc Exp $ + +SHA1 (troffcvt-1.04.tar.gz) = c471e01844f65403f1cc2ba393f1113006748b87 +Size (troffcvt-1.04.tar.gz) = 298755 bytes +SHA1 (patch-aa) = 66b78d40e3d6207f83fe97b2bc123d6a2f9dd07b +SHA1 (patch-ab) = a7d049b1c419d519ee2b0ca8e7d41491e5deefca +SHA1 (patch-ac) = f94c07fd88fbec56a20c085ce3398f2ba56040b7 +SHA1 (patch-ad) = e53cc0ce4beb0c4232e902406431a9fc7b91bc9d +SHA1 (patch-ae) = 1be9ba1b23a93562df5474f55bff921cd3d0d2cd +SHA1 (patch-af) = 22ad1483d91c5e11d50463bddcb9a603771cf609 diff --git a/textproc/troffcvt/patches/patch-aa b/textproc/troffcvt/patches/patch-aa new file mode 100644 index 00000000000..d69d4f1d317 --- /dev/null +++ b/textproc/troffcvt/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/04/27 12:27:06 agc Exp $ + +--- lib/Makefile.orig Sun Apr 8 19:51:19 2001 ++++ lib/Makefile Sun Apr 8 19:51:32 2001 +@@ -408,9 +408,9 @@ + libfile.o: .././h/tcgen.h + r-font.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h + r-font.o: /usr/include/ctype.h /usr/include/string.h /usr/local/include/etm.h +-r-font.o: /usr/local/include/memmgr.h /usr/local/include/tokenscan.h ++r-font.o: /usr/local/include/memmgr.h + r-font.o: .././h/tcgen.h .././h/tcread.h + r-read.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h + r-read.o: /usr/include/ctype.h /usr/local/include/etm.h +-r-read.o: /usr/local/include/memmgr.h /usr/local/include/tokenscan.h ++r-read.o: /usr/local/include/memmgr.h + r-read.o: .././h/tcread.h diff --git a/textproc/troffcvt/patches/patch-ab b/textproc/troffcvt/patches/patch-ab new file mode 100644 index 00000000000..8626ab48893 --- /dev/null +++ b/textproc/troffcvt/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/04/27 12:27:06 agc Exp $ + +--- troffcvt/Makefile.orig Fri May 23 12:28:06 1997 ++++ troffcvt/Makefile Sun Apr 8 20:19:16 2001 +@@ -469,7 +469,8 @@ + runtest:: runtest.pl + $(RM) $@ + echo "#!"$(PERLPATH) > $@ +- $(MSUB) runtest.pl >> $@ ++ $(SED) <runtest.pl >> $@ 's/\$$(CMP)/$(CMP)/' ++# $(MSUB) runtest.pl >> $@ + $(CHMOD) a+x $@ + + clean:: +@@ -537,7 +538,6 @@ + + main.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h + main.o: /usr/include/ctype.h /usr/include/sys/types.h +-main.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h + main.o: /usr/include/sys/select.h /usr/include/sys/time.h /usr/include/time.h + main.o: /usr/include/string.h /usr/local/include/portlib.h + main.o: /usr/local/include/etm.h /usr/local/include/memmgr.h .././h/tcgen.h diff --git a/textproc/troffcvt/patches/patch-ac b/textproc/troffcvt/patches/patch-ac new file mode 100644 index 00000000000..54eb0d82368 --- /dev/null +++ b/textproc/troffcvt/patches/patch-ac @@ -0,0 +1,14 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/04/27 12:27:06 agc Exp $ + +--- tblcvt/Makefile.orig Sun Apr 8 20:23:09 2001 ++++ tblcvt/Makefile Sun Apr 8 20:23:31 2001 +@@ -309,7 +309,8 @@ + tblcvt:: tblcvt.pl + $(RM) $@ + echo "#!"$(PERL5PATH) > $@ +- $(MSUB) tblcvt.pl >> $@ ++ $(CAT) tblcvt.pl >> $@ ++# $(MSUB) tblcvt.pl >> $@ + $(CHMOD) a+x $@ + + clean:: diff --git a/textproc/troffcvt/patches/patch-ad b/textproc/troffcvt/patches/patch-ad new file mode 100644 index 00000000000..bd0bdef2502 --- /dev/null +++ b/textproc/troffcvt/patches/patch-ad @@ -0,0 +1,56 @@ +$NetBSD: patch-ad,v 1.1.1.1 2001/04/27 12:27:06 agc Exp $ + +--- post/Makefile.orig Sun Apr 8 20:26:57 2001 ++++ post/Makefile Sun Apr 8 20:29:56 2001 +@@ -381,7 +381,8 @@ + troff2null:: troff2null.pl + $(RM) $@ + echo "#!"$(PERLPATH) > $@ +- $(MSUB) troff2null.pl >> $@ ++ $(CAT) troff2null.pl >> $@ ++# $(MSUB) troff2null.pl >> $@ + $(CHMOD) a+x $@ + + clean:: +@@ -432,7 +433,8 @@ + tc2html-toc:: tc2html-toc.pl + $(RM) $@ + echo "#!"$(PERLPATH) > $@ +- $(MSUB) tc2html-toc.pl >> $@ ++ $(CAT) tc2html-toc.pl >> $@ ++# $(MSUB) tc2html-toc.pl >> $@ + $(CHMOD) a+x $@ + + clean:: +@@ -454,7 +456,10 @@ + troff2html:: troff2html.pl + $(RM) $@ + echo "#!"$(PERLPATH) > $@ +- $(MSUB) troff2html.pl >> $@ ++ $(SED) <troff2html.pl >> $@ \ ++ -e "s|\$$(TMPDIR)|$(TMPDIR)|" \ ++ -e "s|\$$(RM)|$(RM)|" ++# $(MSUB) troff2html.pl >> $@ + $(CHMOD) a+x $@ + + clean:: +@@ -523,7 +528,8 @@ + troff2rtf:: troff2rtf.pl + $(RM) $@ + echo "#!"$(PERLPATH) > $@ +- $(MSUB) troff2rtf.pl >> $@ ++ $(CAT) troff2rtf.pl >> $@ ++# $(MSUB) troff2rtf.pl >> $@ + $(CHMOD) a+x $@ + + clean:: +@@ -619,7 +625,8 @@ + unroff:: unroff.pl + $(RM) $@ + echo "#!"$(PERLPATH) > $@ +- $(MSUB) unroff.pl >> $@ ++ $(CAT) unroff.pl >> $@ ++# $(MSUB) unroff.pl >> $@ + $(CHMOD) a+x $@ + + clean:: diff --git a/textproc/troffcvt/patches/patch-ae b/textproc/troffcvt/patches/patch-ae new file mode 100644 index 00000000000..e126f014ac3 --- /dev/null +++ b/textproc/troffcvt/patches/patch-ae @@ -0,0 +1,14 @@ +$NetBSD: patch-ae,v 1.1.1.1 2001/04/27 12:27:06 agc Exp $ + +--- man/Makefile.orig Sun Apr 8 20:32:21 2001 ++++ man/Makefile Sun Apr 8 20:33:12 2001 +@@ -325,7 +325,8 @@ + all:: troffcvt.man + troffcvt.man:: troffcvt.msub + $(RM) $@ +- $(MSUB) troffcvt.msub > $@ ++ $(SED) <troffcvt.msub > $@ "s|\$$(PROJLIBDIR)|$(PROJLIBDIR)|" ++# $(MSUB) troffcvt.msub > $@ + + clean:: + $(RM) troffcvt.man diff --git a/textproc/troffcvt/patches/patch-af b/textproc/troffcvt/patches/patch-af new file mode 100644 index 00000000000..a9d1c37e38a --- /dev/null +++ b/textproc/troffcvt/patches/patch-af @@ -0,0 +1,34 @@ +$NetBSD: patch-af,v 1.1.1.1 2001/04/27 12:27:06 agc Exp $ + +--- misc/Makefile.orig Sun Apr 8 20:34:58 2001 ++++ misc/Makefile Sun Apr 8 20:36:29 2001 +@@ -321,7 +321,8 @@ + list-html-codes:: list-html-codes.pl + $(RM) $@ + echo "#!"$(PERLPATH) > $@ +- $(MSUB) list-html-codes.pl >> $@ ++ $(CAT) list-html-codes.pl >> $@ ++# $(MSUB) list-html-codes.pl >> $@ + $(CHMOD) a+x $@ + + clean:: +@@ -340,7 +341,8 @@ + list-specials:: list-specials.pl + $(RM) $@ + echo "#!"$(PERL5PATH) > $@ +- $(MSUB) list-specials.pl >> $@ ++ $(SED) <list-specials.pl >> $@ "s|\$$(TOP)|$(TOP)|" ++# $(MSUB) list-specials.pl >> $@ + $(CHMOD) a+x $@ + + clean:: +@@ -359,7 +361,8 @@ + chk-specials:: chk-specials.pl + $(RM) $@ + echo "#!"$(PERL5PATH) > $@ +- $(MSUB) chk-specials.pl >> $@ ++ $(SED) <chk-specials.pl >> $@ "s|\$$(TOP)|$(TOP)|" ++# $(MSUB) chk-specials.pl >> $@ + $(CHMOD) a+x $@ + + clean:: diff --git a/textproc/troffcvt/pkg/DESCR b/textproc/troffcvt/pkg/DESCR new file mode 100644 index 00000000000..cdaac8851b3 --- /dev/null +++ b/textproc/troffcvt/pkg/DESCR @@ -0,0 +1,5 @@ +troffcvt is a translator that turns troff input into a form that can +be more easily processed. The troffcvt distribution comes with +postprocessors that turn troffcvt into various destination formats +such as HTML (Hypertext Markup Language), RTF (Rich Text Format) or +plain text. diff --git a/textproc/troffcvt/pkg/PLIST b/textproc/troffcvt/pkg/PLIST new file mode 100644 index 00000000000..38d1b0b52f3 --- /dev/null +++ b/textproc/troffcvt/pkg/PLIST @@ -0,0 +1,35 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/04/27 12:27:06 agc Exp $ +bin/troffcvt +bin/tblcvt +bin/tc2null +bin/troff2null +bin/tc2html +bin/tc2html-toc +bin/troff2html +bin/tc2rtf +bin/troff2rtf +bin/tc2text +bin/unroff +lib/troffcvt/actions +lib/troffcvt/actions-html +lib/troffcvt/tc.man +lib/troffcvt/tc.man-html +lib/troffcvt/tc.me +lib/troffcvt/tc.me-html +lib/troffcvt/tc.mm +lib/troffcvt/tc.mm-html +lib/troffcvt/tc.ms +lib/troffcvt/tc.ms-html +lib/troffcvt/tc.mdoc +lib/troffcvt/tc.mdoc-html +lib/troffcvt/tcr-fonts +lib/troffcvt/html-fonts +lib/troffcvt/html-specials +lib/troffcvt/rtf-fonts +lib/troffcvt/rtf-spec-ansi +lib/troffcvt/rtf-spec-mac +lib/troffcvt/rtf-spec-pc +lib/troffcvt/rtf-spec-pca +lib/troffcvt/text-specials +lib/troffcvt/text-8-specials +@dirrm lib/troffcvt |