Add odt2txt 0.2, a simple (and stupid) converter from OpenDocument Text

to plain text.

PR:		ports/107606
Submitted by:	chinsan
This commit is contained in:
Rong-En Fan 2007-01-07 07:17:21 +00:00
parent 178302e520
commit db68be77b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=181661
4 changed files with 43 additions and 0 deletions

View File

@ -317,6 +317,7 @@
SUBDIR += ocaml-pxp
SUBDIR += ocaml-yaxi
SUBDIR += ocaml-yaxpo
SUBDIR += odt2txt
SUBDIR += openfts
SUBDIR += openjade
SUBDIR += opensched

26
textproc/odt2txt/Makefile Normal file
View File

@ -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>

View File

@ -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

View File

@ -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/