From owner-svn-ports-head@FreeBSD.ORG Thu Sep 20 14:22:10 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E762106566B; Thu, 20 Sep 2012 14:22:10 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 187C88FC15; Thu, 20 Sep 2012 14:22:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8KEM98Z033804; Thu, 20 Sep 2012 14:22:09 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8KEM9QW033795; Thu, 20 Sep 2012 14:22:09 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201209201422.q8KEM9QW033795@svn.freebsd.org> From: Pawel Pekala Date: Thu, 20 Sep 2012 14:22:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304580 - in head/textproc: . unoconv unoconv/files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2012 14:22:10 -0000 Author: pawel Date: Thu Sep 20 14:22:09 2012 New Revision: 304580 URL: http://svn.freebsd.org/changeset/ports/304580 Log: 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 Added: head/textproc/unoconv/ head/textproc/unoconv/Makefile (contents, props changed) head/textproc/unoconv/distinfo (contents, props changed) head/textproc/unoconv/files/ head/textproc/unoconv/files/pkg-message.in (contents, props changed) head/textproc/unoconv/files/unoconv.in (contents, props changed) head/textproc/unoconv/pkg-descr (contents, props changed) head/textproc/unoconv/pkg-plist (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Thu Sep 20 14:21:34 2012 (r304579) +++ head/textproc/Makefile Thu Sep 20 14:22:09 2012 (r304580) @@ -1429,6 +1429,7 @@ SUBDIR += uml2svg SUBDIR += uncrustify SUBDIR += uni2ascii + SUBDIR += unoconv SUBDIR += unroff SUBDIR += unrtf SUBDIR += urlview Added: head/textproc/unoconv/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/unoconv/Makefile Thu Sep 20 14:22:09 2012 (r304580) @@ -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 + +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 Added: head/textproc/unoconv/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/unoconv/distinfo Thu Sep 20 14:22:09 2012 (r304580) @@ -0,0 +1,2 @@ +SHA256 (python/unoconv-0.6.tar.gz) = 790e614b8615217ef4588b187f0018b526ec2bb480c6b9b2ffb9b82f48da73d4 +SIZE (python/unoconv-0.6.tar.gz) = 91578 Added: head/textproc/unoconv/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/unoconv/files/pkg-message.in Thu Sep 20 14:22:09 2012 (r304580) @@ -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* + +=============================================================================== Added: head/textproc/unoconv/files/unoconv.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/unoconv/files/unoconv.in Thu Sep 20 14:22:09 2012 (r304580) @@ -0,0 +1,7 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +cd "%%DATADIR%%" +./unoconv "$@" Added: head/textproc/unoconv/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/unoconv/pkg-descr Thu Sep 20 14:22:09 2012 (r304580) @@ -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/ Added: head/textproc/unoconv/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/unoconv/pkg-plist Thu Sep 20 14:22:09 2012 (r304580) @@ -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%%