diff options
author | rafan <rafan@FreeBSD.org> | 2007-01-07 15:17:21 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-01-07 15:17:21 +0800 |
commit | 901e7117af22ddc71c930f490791d52f8efd4643 (patch) | |
tree | f81e9c15a3f0c24e2db805c7ea5b7d173d882483 /textproc | |
parent | 66c3f35738d346219d89d952e509f6241a9a9e6a (diff) | |
download | freebsd-ports-gnome-901e7117af22ddc71c930f490791d52f8efd4643.tar.gz freebsd-ports-gnome-901e7117af22ddc71c930f490791d52f8efd4643.tar.zst freebsd-ports-gnome-901e7117af22ddc71c930f490791d52f8efd4643.zip |
Add odt2txt 0.2, a simple (and stupid) converter from OpenDocument Text
to plain text.
PR: ports/107606
Submitted by: chinsan
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/odt2txt/Makefile | 26 | ||||
-rw-r--r-- | textproc/odt2txt/distinfo | 3 | ||||
-rw-r--r-- | textproc/odt2txt/pkg-descr | 13 |
4 files changed, 43 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 7c9bcd195751..11903acc4b9b 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -317,6 +317,7 @@ SUBDIR += ocaml-pxp SUBDIR += ocaml-yaxi SUBDIR += ocaml-yaxpo + SUBDIR += odt2txt SUBDIR += openfts SUBDIR += openjade SUBDIR += opensched diff --git a/textproc/odt2txt/Makefile b/textproc/odt2txt/Makefile new file mode 100644 index 000000000000..e9d607f3b39b --- /dev/null +++ b/textproc/odt2txt/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: odt2txt +# Date created: 2007/01/06 +# Whom: chinsan +# +# $FreeBSD$ +# + +PORTNAME= odt2txt +PORTVERSION= 0.2 +CATEGORIES= textproc +MASTER_SITES= http://stosberg.net/odt2txt/ + +MAINTAINER= chinsan@FreeBSD.org +COMMENT= A simple (and stupid) converter from OpenDocument Text to plain text + +USE_GMAKE= yes +USE_ICONV= yes +CPPFLAGS+= -DICONV_CHAR="const char" -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +PLIST_FILES= bin/odt2txt + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/textproc/odt2txt/distinfo b/textproc/odt2txt/distinfo new file mode 100644 index 000000000000..b8813ad0c546 --- /dev/null +++ b/textproc/odt2txt/distinfo @@ -0,0 +1,3 @@ +MD5 (odt2txt-0.2.tar.gz) = 6117f6baec394dbeb295544f8f0d6778 +SHA256 (odt2txt-0.2.tar.gz) = 68c4663471d7bb6d49ab6f073ab5daa48344c2c9a15b9dfaf8d0aaac95e55039 +SIZE (odt2txt-0.2.tar.gz) = 32243 diff --git a/textproc/odt2txt/pkg-descr b/textproc/odt2txt/pkg-descr new file mode 100644 index 000000000000..eb40c01d2d4a --- /dev/null +++ b/textproc/odt2txt/pkg-descr @@ -0,0 +1,13 @@ +A simple (and stupid) converter from OpenDocument Text to plain text + + * small (size of binary is 25 KB on Linux/i386) + * fast (no xml parser involved) + * supports multiple output encodings, adopts to your locale + * can substitute common characters which the output charset does not + contain with ascii look-alikes + * portable (runs on Linux, *BSD, Solaris, Windows, Cygwin) + * mostly self-contained (only requirements are a POSIX-compatible regex + library and an iconv implementation) + * license: GPL, version 2 + +WWW: http://stosberg.net/odt2txt/ |