summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-01-17 01:07:14 +0000
committerrecht <recht@pkgsrc.org>2004-01-17 01:07:14 +0000
commit01176c05ebf014664c481c40311c530ca3b7f335 (patch)
tree2f441f5c108c525477e564422595ba16ff0e4393 /textproc
parentcc93a78dba65bad5b09d289eb264ab9b5a323849 (diff)
downloadpkgsrc-01176c05ebf014664c481c40311c530ca3b7f335.tar.gz
initial import of doclifter 1.6
The doclifter program translates documents written in troff macros to DocBook. Lifting documents from presentation level to semantic level is hard, and a really good job requires human polishing. This tool aims to do everything that can be mechanized, and to preserve any troff-level information that might have structural implications in XML comments. This tool does most of the hard parts, but not all. TBL tables diagrams are translated into DocBook table markup and and PIC into SVG, but EQN is not translated. Test loads are included in the distribution. The code has been tested in about the most brutal possible way; it has been run against every single man page in all sections of a full installation of Red Hat 9 with Fedore Core 1 updates. It lifts 96% of 9836 pages without requiring any hand-hacking required.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/doclifter/DESCR15
-rw-r--r--textproc/doclifter/Makefile23
-rw-r--r--textproc/doclifter/PLIST3
-rw-r--r--textproc/doclifter/distinfo4
4 files changed, 45 insertions, 0 deletions
diff --git a/textproc/doclifter/DESCR b/textproc/doclifter/DESCR
new file mode 100644
index 00000000000..71d29e544dd
--- /dev/null
+++ b/textproc/doclifter/DESCR
@@ -0,0 +1,15 @@
+The doclifter program translates documents written in troff macros to DocBook.
+
+Lifting documents from presentation level to semantic level is hard, and
+a really good job requires human polishing. This tool aims to do everything
+that can be mechanized, and to preserve any troff-level information that might
+have structural implications in XML comments.
+
+This tool does most of the hard parts, but not all. TBL tables diagrams are
+translated into DocBook table markup and and PIC into SVG, but EQN is not
+translated.
+
+Test loads are included in the distribution. The code has been tested in about
+the most brutal possible way; it has been run against every single man page
+in all sections of a full installation of Red Hat 9 with Fedore Core 1 updates.
+It lifts 96% of 9836 pages without requiring any hand-hacking required.
diff --git a/textproc/doclifter/Makefile b/textproc/doclifter/Makefile
new file mode 100644
index 00000000000..a00d2818c36
--- /dev/null
+++ b/textproc/doclifter/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/17 01:07:14 recht Exp $
+#
+
+DISTNAME= doclifter-1.6
+CATEGORIES= textproc
+MASTER_SITES= http://catb.org/~esr/doclifter/
+
+MAINTAINER= recht@NetBSD.org
+HOMEPAGE= http://catb.org/~esr/doclifter/
+COMMENT= Translates documents written in troff macros to DocBook
+
+NO_BUILD= yes
+USE_BUILDLINK2= yes
+
+PYTHON_PATCH_SCRIPTS= doclifter
+PYTHON_VERSIONS_ACCEPTED= 23pth 23 22pth 22
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/doclifter ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doclifter.1 ${PREFIX}/man/man1
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/doclifter/PLIST b/textproc/doclifter/PLIST
new file mode 100644
index 00000000000..374ccba1623
--- /dev/null
+++ b/textproc/doclifter/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/17 01:07:14 recht Exp $
+bin/doclifter
+man/man1/doclifter.1
diff --git a/textproc/doclifter/distinfo b/textproc/doclifter/distinfo
new file mode 100644
index 00000000000..874384db08d
--- /dev/null
+++ b/textproc/doclifter/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/17 01:07:14 recht Exp $
+
+SHA1 (doclifter-1.6.tar.gz) = 21d680e102f5bcd61d3d7d57880e28c881841bb4
+Size (doclifter-1.6.tar.gz) = 100567 bytes