1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Universal Office Converter (unoconv) is a command line tool to convert any

document format that LibreOffice can import to any document format that
LibreOffice can export. It makes use of the LibreOffice's UNO bindings for
non-interactive conversion of documents.

For practical reasons we mention LibreOffice, but OpenOffice is supported by
unoconv as well.

WWW: http://dag.wieers.com/home-made/unoconv/

PR:		ports/171789
Submitted by:	nemysis@gmx.ch
This commit is contained in:
Pawel Pekala 2012-09-20 14:22:09 +00:00
parent ac72e72b5a
commit 7a84e44df3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304580
7 changed files with 109 additions and 0 deletions

View File

@ -1429,6 +1429,7 @@
SUBDIR += uml2svg
SUBDIR += uncrustify
SUBDIR += uni2ascii
SUBDIR += unoconv
SUBDIR += unroff
SUBDIR += unrtf
SUBDIR += urlview

65
textproc/unoconv/Makefile Normal file
View File

@ -0,0 +1,65 @@
# $FreeBSD$
PORTNAME= unoconv
PORTVERSION= 0.6
CATEGORIES= textproc python
MASTER_SITES= http://dag.wieers.com/home-made/unoconv/
DIST_SUBDIR= python
MAINTAINER= nemysis@gmx.ch
COMMENT= Convert any document from and to any LibreOffice supported format
LICENSE= GPLv2
RUN_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
USE_PYTHON= yes
NO_BUILD= yes
PORTDATA= *
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= AUTHORS ChangeLog README.asciidoc WISHLIST
DOCSRCDIR2= ${WRKSRC}/doc
DOCSDIR2= ${DOCSDIR}/doc
DOC_FILES2= errcode.txt filters.txt formats.txt office-installations.txt \
selinux.txt unoconv.1.txt
MAN1= ${PORTNAME}.1
SUB_FILES= ${PORTNAME} pkg-message
.include <bsd.port.options.mk>
do-install:
# Scripts
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
# Executable
${MKDIR} ${DATADIR}/tests
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${DATADIR}
# Data
.for f in *.odt *.csv
@(cd ${WRKSRC}/tests && ${INSTALL_DATA} ${f} ${DATADIR}/tests)
.endfor
# Pixmaps
${INSTALL_DATA} ${WRKSRC}/tests/dag.gif ${PREFIX}/share/pixmaps/${PORTNAME}.gif
# Documentation
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
${MKDIR} ${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
.endif
# pkg-message
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (python/unoconv-0.6.tar.gz) = 790e614b8615217ef4588b187f0018b526ec2bb480c6b9b2ffb9b82f48da73d4
SIZE (python/unoconv-0.6.tar.gz) = 91578

View File

@ -0,0 +1,11 @@
===============================================================================
Universal Office Converter (unoconv) has been installed.
For Document conversions is needed that is LibreOffice or OpenOffice installed
editors/libreoffice
editors/openoffice*
===============================================================================

View File

@ -0,0 +1,7 @@
#!/bin/sh
#
# $FreeBSD$
#
cd "%%DATADIR%%"
./unoconv "$@"

View File

@ -0,0 +1,9 @@
Universal Office Converter (unoconv) is a command line tool to convert any
document format that LibreOffice can import to any document format that
LibreOffice can export. It makes use of the LibreOffice's UNO bindings for
non-interactive conversion of documents.
For practical reasons we mention LibreOffice, but OpenOffice is supported by
unoconv as well.
WWW: http://dag.wieers.com/home-made/unoconv/

View File

@ -0,0 +1,14 @@
bin/unoconv
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README.asciidoc
%%PORTDOCS%%%%DOCSDIR%%/WISHLIST
%%PORTDOCS%%%%DOCSDIR%%/doc/errcode.txt
%%PORTDOCS%%%%DOCSDIR%%/doc/filters.txt
%%PORTDOCS%%%%DOCSDIR%%/doc/formats.txt
%%PORTDOCS%%%%DOCSDIR%%/doc/office-installations.txt
%%PORTDOCS%%%%DOCSDIR%%/doc/selinux.txt
%%PORTDOCS%%%%DOCSDIR%%/doc/unoconv.1.txt
share/pixmaps/unoconv.gif
%%PORTDOCS%%@dirrm %%DOCSDIR%%/doc
%%PORTDOCS%%@dirrm %%DOCSDIR%%