1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

This is a standalone converter for the OpenOffice.org swriter (*.sxw,*.odt)

and  scalc (*.sxc) formats.
It doesn't depend on Open Office or any other external tools or libraries.
There are three output modules:
    * o3read displays a dump of the parse tree
    * o3totxt creates plain text
    * o3tohtml creates html code
Example: unzip -p document.odt content.xml | o3totxt

WWW: http://siag.nu/o3read/

PR:		ports/126320
Submitted by:	Alex Samorukov <samm at os2 dot kiev dot ua>
This commit is contained in:
Dmitry Marakasov 2008-08-21 19:25:30 +00:00
parent b2ead3a669
commit 96454e5450
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218965
5 changed files with 64 additions and 0 deletions

View File

@ -37,6 +37,7 @@
SUBDIR += mpack
SUBDIR += mule-ucs
SUBDIR += nomyso
SUBDIR += o3read
SUBDIR += p5-Boulder
SUBDIR += p5-Convert-ASCII-Armour
SUBDIR += p5-Convert-ASN1

View File

@ -0,0 +1,37 @@
# ex:ts=8
# New ports collection makefile for: o3read
# Date created: Aug 07, 2008
# Whom: samm
#
# $FreeBSD$
PORTNAME= o3read
PORTVERSION= 0.0.4
CATEGORIES= converters
MASTER_SITES= http://siag.nu/pub/o3read/ \
${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles
MAINTAINER= samm@os2.kiev.ua
COMMENT= Standalone converter for the OpenOffice.org writer and scalc formats
MAN1= o3read.1 utf8tolatin1.1
MLINKS= o3read.1 o3totxt.1 o3read.1 o3tohtml.1
PORTDOCS= README COPYING ChangeLog
PLIST_FILES= bin/o3read bin/o3totxt bin/o3tohtml bin/utf8tolatin1
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/o3read ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/o3totxt ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/o3tohtml ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/utf8tolatin1 ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/o3read.1 ${MANPREFIX}/man/man1
@${INSTALL_MAN} ${WRKSRC}/utf8tolatin1.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (o3read-0.0.4.tar.gz) = 583361b559ccf5a764edb586795d1b06
SHA256 (o3read-0.0.4.tar.gz) = 3704b448099d3396bec4cf503c298628c815703aae12bfcddbac4444bc786430
SIZE (o3read-0.0.4.tar.gz) = 21075

View File

@ -0,0 +1,13 @@
--- Makefile.orig 2005-01-07 11:28:47.000000000 +0300
+++ Makefile 2008-08-21 20:27:37.000000000 +0400
@@ -2,9 +2,7 @@
PACKAGE = o3read
VERSION = 0.0.4
-CC = gcc
-CFLAGS = -Wall -ansi -pedantic -O -g
-PREFIX = /usr/local
+CFLAGS += -Wall -ansi -pedantic
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/man/man1
DOCS = COPYING INSTALL README TODO ChangeLog filformat.sxw

View File

@ -0,0 +1,10 @@
This is a standalone converter for the OpenOffice.org swriter (*.sxw,*.odt)
and scalc (*.sxc) formats.
It doesn't depend on Open Office or any other external tools or libraries.
There are three output modules:
* o3read displays a dump of the parse tree
* o3totxt creates plain text
* o3tohtml creates html code
Example: unzip -p document.odt content.xml | o3totxt
WWW: http://siag.nu/o3read/