summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorfrueauf <frueauf>1998-06-19 23:38:17 +0000
committerfrueauf <frueauf>1998-06-19 23:38:17 +0000
commit4255235da118781000bf1bed81b999b1cd56f8c0 (patch)
tree135ece410239f378384c3ab6c27d77bf8f533ac7 /textproc
parent3a2f1499b973b395698d4eed3f48748eacbbec3d (diff)
downloadpkgsrc-4255235da118781000bf1bed81b999b1cd56f8c0.tar.gz
Initial addition of catdoc, which reads MS-Word file and puts out its
content as plain text.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/catdoc/Makefile20
-rw-r--r--textproc/catdoc/files/md51
-rw-r--r--textproc/catdoc/patches/patch-aa9
-rw-r--r--textproc/catdoc/patches/patch-ab41
-rw-r--r--textproc/catdoc/patches/patch-ac11
-rw-r--r--textproc/catdoc/patches/patch-ad17
-rw-r--r--textproc/catdoc/pkg/COMMENT1
-rw-r--r--textproc/catdoc/pkg/DESCR7
-rw-r--r--textproc/catdoc/pkg/PLIST5
9 files changed, 112 insertions, 0 deletions
diff --git a/textproc/catdoc/Makefile b/textproc/catdoc/Makefile
new file mode 100644
index 00000000000..a832206ebed
--- /dev/null
+++ b/textproc/catdoc/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 1998/06/19 23:38:17 frueauf Exp $
+#
+
+DISTNAME= catdoc-0.35
+CATEGORIES= textproc
+MASTER_SITES= http://www.dlr.de/fresh/unix/src/contrib/
+
+MAINTAINER= frueauf@netbsd.org
+
+DEPENDS= tk-8.0p2:../../x11/tk80
+
+# Do not list MAN/CAT pages here. It will confuse if MANZ is set.
+# The pkg uses BSD-style-Makefiles itself, so it does the right thing.
+
+post-install:
+ ${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/wordview \
+ > ${PREFIX}/bin/wordview
+ chmod 755 ${PREFIX}/bin/wordview
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/catdoc/files/md5 b/textproc/catdoc/files/md5
new file mode 100644
index 00000000000..8496d6c782e
--- /dev/null
+++ b/textproc/catdoc/files/md5
@@ -0,0 +1 @@
+MD5 (catdoc-0.35.tar.gz) = 37f7979cd569bf61d34e3b2c4ad0603c
diff --git a/textproc/catdoc/patches/patch-aa b/textproc/catdoc/patches/patch-aa
new file mode 100644
index 00000000000..14cc17cf193
--- /dev/null
+++ b/textproc/catdoc/patches/patch-aa
@@ -0,0 +1,9 @@
+--- Makefile.orig Sat Jun 20 01:09:18 1998
++++ Makefile Sat Jun 20 01:13:08 1998
+@@ -0,0 +1,6 @@
++PROG= catdoc
++
++MANINSTALL= catinstall maninstall
++BINDIR= $(LOCALBASE)/bin
++MANDIR= $(LOCALBASE)/man
++.include <bsd.prog.mk>
diff --git a/textproc/catdoc/patches/patch-ab b/textproc/catdoc/patches/patch-ab
new file mode 100644
index 00000000000..1b3ac0e7d0c
--- /dev/null
+++ b/textproc/catdoc/patches/patch-ab
@@ -0,0 +1,41 @@
+--- catdoc.1.orig Mon Jun 8 08:57:49 1998
++++ catdoc.1 Sat Jun 20 00:54:18 1998
+@@ -13,14 +13,14 @@
+ but it reads MS-Word file and produces human-readable text on standard output.
+ Optionally it can use
+ .BR latex (1)
+-escape sequenses for characters which have specail meaning for LaTeX.
++escape sequenses for characters which have special meaning for LaTeX.
+ It also makes some effort to recognize MS-Word tables, although it never
+ tries to write correct headers for LaTeX tabular environment.
+ .PP
+ .B catdoc
+ can be invoked as filter, if you supply "-" instead of filename, but it is
+-probably useless. It could be removed in future versions, becouse true
+-parsing of Word file (fast saves, footnotes) requires seekable output.
++probably useless. It could be removed in future versions, because true
++parsing of Word files (fast saves, footnotes) requires seekable output.
+
+ .SH OPTIONS
+ .TP 8
+@@ -38,7 +38,7 @@
+ disables word wrapping. By default
+ .B catdoc
+ output is splitted into lines not longer than 72 characters and paragraphs
+-are separated by blank line. With this option each paragraph is one
++are separated by a blank line. With this option each paragraph is one
+ long line.
+ .TP 8
+ .B -s
+@@ -54,9 +54,9 @@
+
+ .SH BUGS
+
+-Can produce garbage, if file contain embedded illustrations. Doesn't handle
++Can produce garbage, if file contains embedded illustrations. Doesn't handle
+ fast-saves properly. Prints footnotes as separate paragraphs at the end of
+-file, instead of producing correct latex commands.
++file, instead of producing correct LaTeX commands.
+
+ .SH AUTHOR
+
diff --git a/textproc/catdoc/patches/patch-ac b/textproc/catdoc/patches/patch-ac
new file mode 100644
index 00000000000..2bf1b549025
--- /dev/null
+++ b/textproc/catdoc/patches/patch-ac
@@ -0,0 +1,11 @@
+--- catdoc.c.orig Fri Jun 5 12:43:35 1998
++++ catdoc.c Sat Jun 20 01:03:13 1998
+@@ -46,7 +46,7 @@
+ #define BUFFER_SIZE 16384
+ #endif
+ /* enable this define, if you don't want cyrillic code page translations */
+-/* #define LATIN1*/
++#define LATIN1
+
+
+ /* ......................................................... charsets ... */
diff --git a/textproc/catdoc/patches/patch-ad b/textproc/catdoc/patches/patch-ad
new file mode 100644
index 00000000000..cd6e30e211a
--- /dev/null
+++ b/textproc/catdoc/patches/patch-ad
@@ -0,0 +1,17 @@
+--- wordview.orig Tue Nov 11 15:04:07 1997
++++ wordview Sat Jun 20 01:20:09 1998
+@@ -1,4 +1,4 @@
+-#!/usr/bin/wish4.2
++#!@PREFIX@/bin/wish8.0
+
+ set font 8x13
+
+@@ -72,7 +72,7 @@
+ if ![file readable $name] {
+ return -code error "Cannot open file $name"
+ }
+-set f [open "|[file dirname [info script]]/catdoc -w $name" r]
++set f [open "|@PREFIX@/bin/catdoc -w $name" r]
+ .text configure -state normal
+ .text delete 0.0 end
+ .text insert 0.0 [read $f] doc
diff --git a/textproc/catdoc/pkg/COMMENT b/textproc/catdoc/pkg/COMMENT
new file mode 100644
index 00000000000..0c49507acf8
--- /dev/null
+++ b/textproc/catdoc/pkg/COMMENT
@@ -0,0 +1 @@
+reads MS-Word file and puts out its content as plain text.
diff --git a/textproc/catdoc/pkg/DESCR b/textproc/catdoc/pkg/DESCR
new file mode 100644
index 00000000000..2d9c2f01155
--- /dev/null
+++ b/textproc/catdoc/pkg/DESCR
@@ -0,0 +1,7 @@
+catdoc behaves much like cat(1) but reads MS-Word file and
+produces human-readable text on standard output. Option-
+ally it can use latex(1) escape sequences for characters
+which have special meaning for LaTeX. It also makes some
+effort to recognize MS-Word tables, although it never
+tries to write correct headers for LaTeX tabular environ-
+ment.
diff --git a/textproc/catdoc/pkg/PLIST b/textproc/catdoc/pkg/PLIST
new file mode 100644
index 00000000000..5a6e32ad035
--- /dev/null
+++ b/textproc/catdoc/pkg/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 1998/06/19 23:38:18 frueauf Exp $
+bin/catdoc
+bin/wordview
+man/man1/catdoc.1
+man/cat1/catdoc.0