Bug 171789 - [NEW PORT] textproc/unoconv: Convert any document from and to any LibreOffice supported format
Summary: [NEW PORT] textproc/unoconv: Convert any document from and to any LibreOffice...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-19 18:50 UTC by nemysis
Modified: 2012-09-20 15:30 UTC (History)
1 user (show)

See Also:


Attachments
.shar (4.24 KB, text/plain)
2012-09-19 18:50 UTC, nemysis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2012-09-19 18:50:10 UTC
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/

Generated and tested manually, tested with port test and with RedPorts (all RELEASES, CLANG), sent with FreeBSD Port Tools 0.99_6 (mode: new)

How-To-Repeat: 
portlint -A
WARN: Makefile: [7]: possible direct use of command "python" found. use ${PYTHON_CMD} instead.
WARN: Makefile: only one MASTER_SITE configured.  Consider adding additional mirrors.
0 fatal errors and 2 warnings found.


WARN: Makefile: [7] because is used

DIST_SUBDIR=    python


Build log RedPorts

https://redports.org/buildarchive/20120919171929-31061/
Comment 1 dfilter service freebsd_committer freebsd_triage 2012-09-20 15:22:25 UTC
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 <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>

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%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Pawel Pekala freebsd_committer freebsd_triage 2012-09-20 15:22:39 UTC
State Changed
From-To: open->closed

New port added. Thanks!