From 68e3869e530a2fcd2ce667136f8495125dfaa550 Mon Sep 17 00:00:00 2001 From: reed Date: Thu, 17 Apr 2008 12:33:55 +0000 Subject: 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.) --- converters/odt2txt/DESCR | 4 ++++ converters/odt2txt/Makefile | 20 ++++++++++++++++++++ converters/odt2txt/PLIST | 3 +++ converters/odt2txt/distinfo | 6 ++++++ converters/odt2txt/patches/patch-aa | 19 +++++++++++++++++++ 5 files changed, 52 insertions(+) create mode 100644 converters/odt2txt/DESCR create mode 100644 converters/odt2txt/Makefile create mode 100644 converters/odt2txt/PLIST create mode 100644 converters/odt2txt/distinfo create mode 100644 converters/odt2txt/patches/patch-aa (limited to 'converters') 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) -- cgit v1.2.3