diff options
author | manu <manu@pkgsrc.org> | 2017-07-09 14:13:53 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2017-07-09 14:13:53 +0000 |
commit | c465f76d28a417b398930e660d92998a7c7c3591 (patch) | |
tree | 8a4b3fbeda5bf27b3116ed7a0690322ec4ecbfee | |
parent | 4e84f9ca2288f80283c68216cd3e5305d422b257 (diff) | |
download | pkgsrc-c465f76d28a417b398930e660d92998a7c7c3591.tar.gz |
Add converters/unoconv
unoconv converts any document format that OpenOffice can import, to any
document format that OpenOffice can export.
unoconv uses the OpenOffice's UNO bindings for non-interactive conversion
of documents.
-rw-r--r-- | converters/Makefile | 3 | ||||
-rw-r--r-- | converters/unoconv/DESCR | 0 | ||||
-rw-r--r-- | converters/unoconv/Makefile | 39 | ||||
-rw-r--r-- | converters/unoconv/PLIST | 4 | ||||
-rw-r--r-- | converters/unoconv/distinfo | 6 | ||||
-rw-r--r-- | converters/unoconv/files/unoconv.sh | 11 | ||||
-rw-r--r-- | doc/CHANGES-2017 | 3 |
7 files changed, 64 insertions, 2 deletions
diff --git a/converters/Makefile b/converters/Makefile index ada32fe8f67..889ab58fd64 100644 --- a/converters/Makefile +++ b/converters/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.155 2017/06/23 07:12:19 manu Exp $ +# $NetBSD: Makefile,v 1.156 2017/07/09 14:13:53 manu Exp $ # COMMENT= Document format and character code converters @@ -125,6 +125,7 @@ SUBDIR+= txt2html SUBDIR+= txt2man SUBDIR+= txt2pdbdoc SUBDIR+= unix2dos +SUBDIR+= unoconv SUBDIR+= uudeview SUBDIR+= uulib SUBDIR+= wkhtmltopdf diff --git a/converters/unoconv/DESCR b/converters/unoconv/DESCR new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/converters/unoconv/DESCR diff --git a/converters/unoconv/Makefile b/converters/unoconv/Makefile new file mode 100644 index 00000000000..29dd103ad82 --- /dev/null +++ b/converters/unoconv/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1 2017/07/09 14:13:53 manu Exp $ + +GITHUB_PROJECT= unoconv +DISTNAME= 0.7 +PKGNAME= ${GITHUB_PROJECT}-${DISTNAME} +CATEGORIES= converters +MASTER_SITES= ${MASTER_SITE_GITHUB:=dagwieers/} +DIST_SUBDIR= ${GITHUB_PROJECT} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/dagwieers/unoconv/ +COMMENT= Convert any format supported by LibreOffice/OpenOffice +LICENSE= gnu-gpl-v2 + +WRKSRC= ${WRKDIR}/unoconv-0.7 +USE_TOOLS+= gmake + +REPLACE_PYTHON+=unoconv + +BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc +DEPENDS+= libreoffice>=5.3.4.2nb1:../../misc/libreoffice + +pre-build: + sed "s|@PREFIX@|${PREFIX}|" ${FILESDIR}/unoconv.sh > \ + ${WRKDIR}/unoconv.sh + +do-install: + ${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/bin + ${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/libexec + ${INSTALL_MAN_DIR} ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_SCRIPT} ${WRKSRC}/unoconv \ + ${DESTDIR}${PREFIX}/libexec/unoconv.py + ${INSTALL_SCRIPT} ${WRKDIR}/unoconv.sh \ + ${DESTDIR}${PREFIX}/bin/unoconv + ${INSTALL_MAN} ${WRKSRC}/doc/unoconv.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/unoconv.1 + +.include "../../lang/python/application.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/converters/unoconv/PLIST b/converters/unoconv/PLIST new file mode 100644 index 00000000000..085cb131243 --- /dev/null +++ b/converters/unoconv/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2017/07/09 14:13:53 manu Exp $ +bin/unoconv +libexec/unoconv.py +man/man1/unoconv.1 diff --git a/converters/unoconv/distinfo b/converters/unoconv/distinfo new file mode 100644 index 00000000000..10323e196b8 --- /dev/null +++ b/converters/unoconv/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2017/07/09 14:13:53 manu Exp $ + +SHA1 (unoconv/0.7.tar.gz) = 04b101c4961d88da8721cbfe26b565b96b83d0d2 +RMD160 (unoconv/0.7.tar.gz) = 5d301b34ebed9aa8efe91021734f51f85d2d2b61 +SHA512 (unoconv/0.7.tar.gz) = 3b0837e11f22733e0fbef93dc6aeabd0e2d3d59b6c35a6f7b29b86506a5842bcbffb3e889864d6e14c1e53dd306354690a699257fe60f36ce1d4455ab52b5df7 +Size (unoconv/0.7.tar.gz) = 96151 bytes diff --git a/converters/unoconv/files/unoconv.sh b/converters/unoconv/files/unoconv.sh new file mode 100644 index 00000000000..e4f69133ef2 --- /dev/null +++ b/converters/unoconv/files/unoconv.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +PYTHONBIN=`pkg_info -Q PYTHONBIN libreoffice` +UNO_PATH=`pkg_info -Q UNO_PATH libreoffice` +LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${UNO_PATH} + +export UNO_PATH +export LD_LIBRARY_PATH + +${PYTHONBIN} @PREFIX@/libexec/unoconv.py $* + diff --git a/doc/CHANGES-2017 b/doc/CHANGES-2017 index e75a2697ff9..6f948b2cbc5 100644 --- a/doc/CHANGES-2017 +++ b/doc/CHANGES-2017 @@ -1,4 +1,4 @@ -$NetBSD: CHANGES-2017,v 1.2777 2017/07/09 11:52:53 ryoon Exp $ +$NetBSD: CHANGES-2017,v 1.2778 2017/07/09 14:13:53 manu Exp $ Changes to the packages collection and infrastructure in 2017: @@ -3846,3 +3846,4 @@ Changes to the packages collection and infrastructure in 2017: Added devel/py-clickclick version 1.2.1 [adam 2017-07-09] Added textproc/py-inflection version 0.3.1 [adam 2017-07-09] Updated net/corebird to 1.5.1 [ryoon 2017-07-09] + Added converters/unoconv 0.7 [manu 2017-07-09] |