From c4c768d070bced3c3185f04c7bb021970e9079b5 Mon Sep 17 00:00:00 2001 From: jasper Date: Tue, 14 Apr 2009 11:28:12 +0000 Subject: [PATCH] import odt2txt 0.4 odt2txt is a simple converter from OpenDocument Text to plain text. It's a command-line tool which extracts the text out of OpenDocument Texts produced by OpenOffice.org, StarOffice, KOffice and others. --- textproc/odt2txt/Makefile | 28 +++++++++++++++++++++++++ textproc/odt2txt/distinfo | 5 +++++ textproc/odt2txt/patches/patch-Makefile | 12 +++++++++++ textproc/odt2txt/pkg/DESCR | 3 +++ textproc/odt2txt/pkg/PLIST | 3 +++ 5 files changed, 51 insertions(+) create mode 100644 textproc/odt2txt/Makefile create mode 100644 textproc/odt2txt/distinfo create mode 100644 textproc/odt2txt/patches/patch-Makefile create mode 100644 textproc/odt2txt/pkg/DESCR create mode 100644 textproc/odt2txt/pkg/PLIST diff --git a/textproc/odt2txt/Makefile b/textproc/odt2txt/Makefile new file mode 100644 index 00000000000..81533c760d3 --- /dev/null +++ b/textproc/odt2txt/Makefile @@ -0,0 +1,28 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/04/14 11:28:12 jasper Exp $ + +COMMENT= convert OpenDocument Text to plain text + +DISTNAME= odt2txt-0.4 +CATEGORIES= textproc + +HOMEPAGE= http://stosberg.net/odt2txt/ + +# GPLv2 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE} + +WANTLIB += c z + +USE_GMAKE= Yes + +NO_REGRESS= Yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/odt2txt ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/odt2txt.1 ${PREFIX}/man/man1 + +.include diff --git a/textproc/odt2txt/distinfo b/textproc/odt2txt/distinfo new file mode 100644 index 00000000000..a5aa8708080 --- /dev/null +++ b/textproc/odt2txt/distinfo @@ -0,0 +1,5 @@ +MD5 (odt2txt-0.4.tar.gz) = b+O9Jhzi3eKBAkS76Wm7xQ== +RMD160 (odt2txt-0.4.tar.gz) = u27xpYprGPQIVb5BJOMrHVFOi8o= +SHA1 (odt2txt-0.4.tar.gz) = Mx7vHGTOyAmlx7fPuXInnMT5yRQ= +SHA256 (odt2txt-0.4.tar.gz) = pfS9+BzcKvtg+nTtXaNCNer9x4Jj9aqjJRk8K/jRZvg= +SIZE (odt2txt-0.4.tar.gz) = 23997 diff --git a/textproc/odt2txt/patches/patch-Makefile b/textproc/odt2txt/patches/patch-Makefile new file mode 100644 index 00000000000..8e631a0e2d9 --- /dev/null +++ b/textproc/odt2txt/patches/patch-Makefile @@ -0,0 +1,12 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2009/04/14 11:28:12 jasper Exp $ +--- Makefile.orig Mon Jun 23 21:32:28 2008 ++++ Makefile Tue Apr 14 13:23:40 2009 +@@ -7,7 +7,7 @@ CFLAGS = -O0 -g -Wextra -DMEMDEBUG -DSTRBUF_CHECK + #LDFLAGS = -lefence + LDFLAGS += -g + else +-CFLAGS = -O2 ++CFLAGS ?= -O2 + endif + + ifdef NO_ICONV diff --git a/textproc/odt2txt/pkg/DESCR b/textproc/odt2txt/pkg/DESCR new file mode 100644 index 00000000000..60d6c92f55b --- /dev/null +++ b/textproc/odt2txt/pkg/DESCR @@ -0,0 +1,3 @@ +odt2txt is a simple converter from OpenDocument Text to plain text. It's +a command-line tool which extracts the text out of OpenDocument Texts +produced by OpenOffice.org, StarOffice, KOffice and others. diff --git a/textproc/odt2txt/pkg/PLIST b/textproc/odt2txt/pkg/PLIST new file mode 100644 index 00000000000..7732ac9dfd3 --- /dev/null +++ b/textproc/odt2txt/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/04/14 11:28:12 jasper Exp $ +@bin bin/odt2txt +@man man/man1/odt2txt.1