aboutsummaryrefslogtreecommitdiff
path: root/textproc/odt2txt
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-01-07 07:17:21 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-01-07 07:17:21 +0000
commitdb68be77b7f9dd46e0a2949fdec9ec9168384417 (patch)
treef2f5066b78a52db944fc71e064220e34550c4b23 /textproc/odt2txt
parent178302e52092be7f3454ecf5d29c184243d7f426 (diff)
downloadports-db68be77b7f9dd46e0a2949fdec9ec9168384417.tar.gz
ports-db68be77b7f9dd46e0a2949fdec9ec9168384417.zip
Add odt2txt 0.2, a simple (and stupid) converter from OpenDocument Text
to plain text. PR: ports/107606 Submitted by: chinsan
Notes
Notes: svn path=/head/; revision=181661
Diffstat (limited to 'textproc/odt2txt')
-rw-r--r--textproc/odt2txt/Makefile26
-rw-r--r--textproc/odt2txt/distinfo3
-rw-r--r--textproc/odt2txt/pkg-descr13
3 files changed, 42 insertions, 0 deletions
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/