pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc
Module Name: pkgsrc
Committed By: manu
Date: Sun Jul 9 14:13:54 UTC 2017
Modified Files:
pkgsrc/converters: Makefile
pkgsrc/doc: CHANGES-2017
Added Files:
pkgsrc/converters/unoconv: DESCR Makefile PLIST distinfo
pkgsrc/converters/unoconv/files: unoconv.sh
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 pkgsrc/converters/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/converters/unoconv/DESCR \
pkgsrc/converters/unoconv/Makefile pkgsrc/converters/unoconv/PLIST \
pkgsrc/converters/unoconv/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/converters/unoconv/files/unoconv.sh
cvs rdiff -u -r1.2777 -r1.2778 pkgsrc/doc/CHANGES-2017
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/converters/Makefile
diff -u pkgsrc/converters/Makefile:1.155 pkgsrc/converters/Makefile:1.156
--- pkgsrc/converters/Makefile:1.155 Fri Jun 23 07:12:19 2017
+++ pkgsrc/converters/Makefile Sun Jul 9 14:13:53 2017
@@ -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
Index: pkgsrc/doc/CHANGES-2017
diff -u pkgsrc/doc/CHANGES-2017:1.2777 pkgsrc/doc/CHANGES-2017:1.2778
--- pkgsrc/doc/CHANGES-2017:1.2777 Sun Jul 9 11:52:53 2017
+++ pkgsrc/doc/CHANGES-2017 Sun Jul 9 14:13:53 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 i
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]
Added files:
Index: pkgsrc/converters/unoconv/Makefile
diff -u /dev/null pkgsrc/converters/unoconv/Makefile:1.1
--- /dev/null Sun Jul 9 14:13:54 2017
+++ pkgsrc/converters/unoconv/Makefile Sun Jul 9 14:13:53 2017
@@ -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"
Index: pkgsrc/converters/unoconv/PLIST
diff -u /dev/null pkgsrc/converters/unoconv/PLIST:1.1
--- /dev/null Sun Jul 9 14:13:54 2017
+++ pkgsrc/converters/unoconv/PLIST Sun Jul 9 14:13:53 2017
@@ -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
Index: pkgsrc/converters/unoconv/distinfo
diff -u /dev/null pkgsrc/converters/unoconv/distinfo:1.1
--- /dev/null Sun Jul 9 14:13:54 2017
+++ pkgsrc/converters/unoconv/distinfo Sun Jul 9 14:13:53 2017
@@ -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
Index: pkgsrc/converters/unoconv/files/unoconv.sh
diff -u /dev/null pkgsrc/converters/unoconv/files/unoconv.sh:1.1
--- /dev/null Sun Jul 9 14:13:54 2017
+++ pkgsrc/converters/unoconv/files/unoconv.sh Sun Jul 9 14:13:54 2017
@@ -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 $*
+
Home |
Main Index |
Thread Index |
Old Index