pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Add converters/unoconv



details:   https://anonhg.NetBSD.org/pkgsrc/rev/21cc576b7bb3
branches:  trunk
changeset: 365015:21cc576b7bb3
user:      manu <manu%pkgsrc.org@localhost>
date:      Sun Jul 09 14:13:53 2017 +0000

description:
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.

diffstat:

 converters/Makefile                 |   3 +-
 converters/unoconv/Makefile         |  39 +++++++++++++++++++++++++++++++++++++
 converters/unoconv/PLIST            |   4 +++
 converters/unoconv/distinfo         |   6 +++++
 converters/unoconv/files/unoconv.sh |  11 ++++++++++
 doc/CHANGES-2017                    |   3 +-
 6 files changed, 64 insertions(+), 2 deletions(-)

diffs (107 lines):

diff -r cc1c22b4946d -r 21cc576b7bb3 converters/Makefile
--- a/converters/Makefile       Sun Jul 09 13:46:32 2017 +0000
+++ b/converters/Makefile       Sun Jul 09 14:13:53 2017 +0000
@@ -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+=       txt2man
 SUBDIR+=       txt2pdbdoc
 SUBDIR+=       unix2dos
+SUBDIR+=       unoconv
 SUBDIR+=       uudeview
 SUBDIR+=       uulib
 SUBDIR+=       wkhtmltopdf
diff -r cc1c22b4946d -r 21cc576b7bb3 converters/unoconv/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/unoconv/Makefile       Sun Jul 09 14:13:53 2017 +0000
@@ -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@localhost
+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 -r cc1c22b4946d -r 21cc576b7bb3 converters/unoconv/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/unoconv/PLIST  Sun Jul 09 14:13:53 2017 +0000
@@ -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 -r cc1c22b4946d -r 21cc576b7bb3 converters/unoconv/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/unoconv/distinfo       Sun Jul 09 14:13:53 2017 +0000
@@ -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 -r cc1c22b4946d -r 21cc576b7bb3 converters/unoconv/files/unoconv.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/unoconv/files/unoconv.sh       Sun Jul 09 14:13:53 2017 +0000
@@ -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 -r cc1c22b4946d -r 21cc576b7bb3 doc/CHANGES-2017
--- a/doc/CHANGES-2017  Sun Jul 09 13:46:32 2017 +0000
+++ b/doc/CHANGES-2017  Sun Jul 09 14:13:53 2017 +0000
@@ -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 @@
        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]



Home | Main Index | Thread Index | Old Index