summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorreed <reed>2008-04-17 12:33:55 +0000
committerreed <reed>2008-04-17 12:33:55 +0000
commit841f46131b843a6f5e2029d0b01b78475480de1f (patch)
treea8a7dd7d27e52040d3238da7c6568d8a866cc601 /converters
parent5f3020be63d04f385e110068d3d9d8f287b39d95 (diff)
downloadpkgsrc-841f46131b843a6f5e2029d0b01b78475480de1f.tar.gz
New package: odt2txt
odt2txt is a small, command-line tool which extracts the text out of OpenDocument Texts, as produced by OpenOffice.org, KOffice, StarOffice, and others. It supports multiple output encodings, has locale support, and is able to substitute unknown characters. (After I packaged this I also found o3read already packaged.)
Diffstat (limited to 'converters')
-rw-r--r--converters/odt2txt/DESCR4
-rw-r--r--converters/odt2txt/Makefile20
-rw-r--r--converters/odt2txt/PLIST3
-rw-r--r--converters/odt2txt/distinfo6
-rw-r--r--converters/odt2txt/patches/patch-aa19
5 files changed, 52 insertions, 0 deletions
diff --git a/converters/odt2txt/DESCR b/converters/odt2txt/DESCR
new file mode 100644
index 00000000000..b56ea4e8eef
--- /dev/null
+++ b/converters/odt2txt/DESCR
@@ -0,0 +1,4 @@
+odt2txt is a small, command-line tool which extracts the text out
+of OpenDocument Texts, as produced by OpenOffice.org, KOffice,
+StarOffice, and others. It supports multiple output encodings, has
+locale support, and is able to substitute unknown characters.
diff --git a/converters/odt2txt/Makefile b/converters/odt2txt/Makefile
new file mode 100644
index 00000000000..1a1dc4cb0ed
--- /dev/null
+++ b/converters/odt2txt/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/04/17 12:33:56 reed Exp $
+#
+
+DISTNAME= odt2txt-0.3
+CATEGORIES= converters textproc
+MASTER_SITES= http://stosberg.net/odt2txt/
+
+MAINTAINER= reed@reedmedia.net
+HOMEPAGE= http://stosberg.net/odt2txt/
+COMMENT= Simple converter from OpenDocument Text to plain text
+
+USE_TOOLS+= gmake
+MAKE_ENV+= DESTDIR="${LOCALBASE}" MANDIR="/${PKGMANDIR}"
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
+
+# TODO: maybe -m 644 for install of man page
+# TODO: iconv or not?
+# TODO: maybe package odf2html, odfread, odfreader
diff --git a/converters/odt2txt/PLIST b/converters/odt2txt/PLIST
new file mode 100644
index 00000000000..4a6c345bc26
--- /dev/null
+++ b/converters/odt2txt/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/17 12:33:56 reed Exp $
+bin/odt2txt
+man/man1/odt2txt.1
diff --git a/converters/odt2txt/distinfo b/converters/odt2txt/distinfo
new file mode 100644
index 00000000000..41507fbeee9
--- /dev/null
+++ b/converters/odt2txt/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/04/17 12:33:56 reed Exp $
+
+SHA1 (odt2txt-0.3.tar.gz) = efebf01e77a2bfa44ce7f4f24fc244889c480d77
+RMD160 (odt2txt-0.3.tar.gz) = 0648959ab64018c0376045e8ae6d284d804cff9c
+Size (odt2txt-0.3.tar.gz) = 28810 bytes
+SHA1 (patch-aa) = fb517f02b831c27bdab1a0bfad4bb1013299f32c
diff --git a/converters/odt2txt/patches/patch-aa b/converters/odt2txt/patches/patch-aa
new file mode 100644
index 00000000000..125ce16692c
--- /dev/null
+++ b/converters/odt2txt/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/04/17 12:33:56 reed Exp $
+
+--- Makefile.orig 2007-05-21 15:50:37.000000000 -0500
++++ Makefile 2008-04-14 15:30:47.000000000 -0500
+@@ -19,10 +19,14 @@
+ INSTALL = install
+ GROFF = groff
+
++ifndef DESTDIR
+ DESTDIR = /usr/local
++endif
+ PREFIX =
+ BINDIR = $(PREFIX)/bin
++ifndef MANDIR
+ MANDIR = $(PREFIX)/share/man
++endif
+ MAN1DIR = $(MANDIR)/man1
+
+ ifeq ($(UNAME_S),FreeBSD)