summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2006-07-07 14:48:04 +0000
committerghen <ghen@pkgsrc.org>2006-07-07 14:48:04 +0000
commit1e0a54ac5f54ed891e7430285ba1ef4212a3df9a (patch)
tree185d3df9103b8132874e487464506ebe62acf24f /textproc
parent355e1f10208ae968ae8357a6a05612ba6c49d175 (diff)
downloadpkgsrc-1e0a54ac5f54ed891e7430285ba1ef4212a3df9a.tar.gz
Import o3read package from http://siag.nu/o3read/
o3read is a standalone converter for the OpenOffice.org swriter (*.sxw) and scalc (*.sxc) formats. It doesn't depend on OpenOffice or any other external tools or libraries. Example: unzip -p filformat.sxw content.xml | o3read | utf8tolatin1 There are three output modules: * o3read displays a dump of the parse tree * o3totxt creates plain text * o3tohtml creates html code The utility utf8tolatin1 converts from utf8 to 8859-1.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/o3read/DESCR13
-rw-r--r--textproc/o3read/Makefile11
-rw-r--r--textproc/o3read/PLIST9
-rw-r--r--textproc/o3read/distinfo6
-rw-r--r--textproc/o3read/patches/patch-aa17
5 files changed, 56 insertions, 0 deletions
diff --git a/textproc/o3read/DESCR b/textproc/o3read/DESCR
new file mode 100644
index 00000000000..32ad05274d4
--- /dev/null
+++ b/textproc/o3read/DESCR
@@ -0,0 +1,13 @@
+This is a standalone converter for the OpenOffice.org swriter (*.sxw) and scalc
+(*.sxc) formats. It doesn't depend on OpenOffice or any other external tools or
+libraries.
+
+Example: unzip -p filformat.sxw content.xml | o3read | utf8tolatin1
+
+There are three output modules:
+
+ * o3read displays a dump of the parse tree
+ * o3totxt creates plain text
+ * o3tohtml creates html code
+
+The utility utf8tolatin1 converts from utf8 to 8859-1.
diff --git a/textproc/o3read/Makefile b/textproc/o3read/Makefile
new file mode 100644
index 00000000000..e30f89fc592
--- /dev/null
+++ b/textproc/o3read/Makefile
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/07/07 14:48:04 ghen Exp $
+
+DISTNAME= o3read-0.0.4
+CATEGORIES= textproc
+MASTER_SITES= http://siag.nu/pub/o3read/
+
+MAINTAINER= ghen@NetBSD.org
+HOMEPAGE= http://siag.nu/o3read/
+COMMENT= Standalone converter for OpenOffice and OpenDocument file formats
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/o3read/PLIST b/textproc/o3read/PLIST
new file mode 100644
index 00000000000..6373a172eb3
--- /dev/null
+++ b/textproc/o3read/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/07 14:48:04 ghen Exp $
+bin/o3read
+bin/o3tohtml
+bin/o3totxt
+bin/utf8tolatin1
+man/man1/o3read.1
+man/man1/o3tohtml.1
+man/man1/o3totxt.1
+man/man1/utf8tolatin1.1
diff --git a/textproc/o3read/distinfo b/textproc/o3read/distinfo
new file mode 100644
index 00000000000..17bc2a88ad4
--- /dev/null
+++ b/textproc/o3read/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/07/07 14:48:04 ghen Exp $
+
+SHA1 (o3read-0.0.4.tar.gz) = aa8bcfc82b5327f3d86a35193c0a434e33107d09
+RMD160 (o3read-0.0.4.tar.gz) = c011a283fdc3ee6ff4c340519a4ef7f32c258f38
+Size (o3read-0.0.4.tar.gz) = 21075 bytes
+SHA1 (patch-aa) = aa16d6771f3ad76289318360b8d4725576293c69
diff --git a/textproc/o3read/patches/patch-aa b/textproc/o3read/patches/patch-aa
new file mode 100644
index 00000000000..8ff4e75d029
--- /dev/null
+++ b/textproc/o3read/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/07/07 14:48:04 ghen Exp $
+
+--- Makefile.orig 2005-01-07 09:28:47.000000000 +0100
++++ Makefile
+@@ -2,11 +2,8 @@
+ PACKAGE = o3read
+ VERSION = 0.0.4
+
+-CC = gcc
+-CFLAGS = -Wall -ansi -pedantic -O -g
+-PREFIX = /usr/local
+ BINDIR = $(PREFIX)/bin
+-MANDIR = $(PREFIX)/man/man1
++MANDIR = $(PREFIX)/$(PKGMANDIR)/man1
+ DOCS = COPYING INSTALL README TODO ChangeLog filformat.sxw
+ BINS = o3read o3totxt o3tohtml utf8tolatin1
+ SRCS = o3read.h main.c o3read.c o3totxt.c o3tohtml.c utf8tolatin1.c