summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabiano Francesconi (elbryan) <fabiano.francesconi@gmail.com>2010-12-01 22:50:02 +0000
committerFabiano Francesconi (elbryan) <fabiano.francesconi@gmail.com>2010-12-01 22:50:02 +0000
commit78499bb3eebdc19b3510446760f2123129f47eb8 (patch)
tree56a779e9f8b186a2fd9cb728643c8315353c5c3a /app-office
parentdev-python/python-virtkey: Fixed broken SRC_URI due to website address change (diff)
downloadsunrise-78499bb3eebdc19b3510446760f2123129f47eb8.tar.gz
sunrise-78499bb3eebdc19b3510446760f2123129f47eb8.tar.bz2
sunrise-78499bb3eebdc19b3510446760f2123129f47eb8.zip
app-office/unoconv: New ebuild for bug 324981 thanks to Graaff for initial ebuild, thanks to Walter 'DaK_TaLeS' Dacol for the ebuild and the wrapper
svn path=/sunrise/; revision=11580
Diffstat (limited to 'app-office')
-rw-r--r--app-office/unoconv/ChangeLog11
-rw-r--r--app-office/unoconv/Manifest7
-rw-r--r--app-office/unoconv/files/unoconv-0.3-longer-timeout.patch11
-rw-r--r--app-office/unoconv/files/unoconv-0.3-openoffice-3.2.patch11
-rw-r--r--app-office/unoconv/files/unoconv-wrapper14
-rw-r--r--app-office/unoconv/metadata.xml6
-rw-r--r--app-office/unoconv/unoconv-0.3-r3.ebuild29
7 files changed, 89 insertions, 0 deletions
diff --git a/app-office/unoconv/ChangeLog b/app-office/unoconv/ChangeLog
new file mode 100644
index 000000000..0fb285dbc
--- /dev/null
+++ b/app-office/unoconv/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-office/unoconv
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 01 Dec 2010; Fabiano Francesconi (elbryan) <fabiano.francesconi@gmail.com>
+ +unoconv-0.3-r3.ebuild, +files/unoconv-0.3-longer-timeout.patch,
+ +files/unoconv-0.3-openoffice-3.2.patch, +files/unoconv-wrapper,
+ +metadata.xml:
+ New ebuild for bug 324981 thanks to Graaff for initial ebuild, thanks to
+ Walter 'DaK_TaLeS' Dacol for the ebuild and the wrapper
+
diff --git a/app-office/unoconv/Manifest b/app-office/unoconv/Manifest
new file mode 100644
index 000000000..7a0b52ae3
--- /dev/null
+++ b/app-office/unoconv/Manifest
@@ -0,0 +1,7 @@
+AUX unoconv-0.3-longer-timeout.patch 554 RMD160 b8007fa78904c8b1495e6e3e202d69bd3c8a43d5 SHA1 2dff02b6348328bdcccd47a6c6c88273b36ccf8f SHA256 44635640d248ff98c2254a5740a74842ebc0e3a83835639e50d3698e4b298f8e
+AUX unoconv-0.3-openoffice-3.2.patch 665 RMD160 e20615496ce3af64ffa2a79e6bdc0e734c093876 SHA1 f85e62b5fa2003ae7f410e4229265a3b79dd29b8 SHA256 564abdb8a08a4bd5332bde9e6eed8ba1d5b064a93136af9949f124a2ad0a9901
+AUX unoconv-wrapper 350 RMD160 7ae9d519f619e3e6458ddcc2e471eecffead398b SHA1 d47874b0827376e257acb3620147b4db3624d352 SHA256 ad34aba376b88f5b5edce44a84abae2daf468e42ef493f99966e5c8d8811a95e
+DIST unoconv-0.3.tar.bz2 59623 RMD160 6d3eaac9adcedfa492fb6d15d708e9d96d02e18d SHA1 7e4f5fee9075bec05175a773273506baf9b6c191 SHA256 6e1d0701ce6cedb2b21a1b2945f4f774500c4a10cf9d20a718e7a520f4549051
+EBUILD unoconv-0.3-r3.ebuild 759 RMD160 022a99c46b180f28cd8dddf36d997f9dacf59025 SHA1 bcf6e079ef676b78cfdd978a462cd96cb6cbf0c2 SHA256 43701e0a6aac7bb85cecefad92e6cf5bd45e931d469d77d5361a40220a16dcfe
+MISC ChangeLog 481 RMD160 d6130d464d7352ba27eeac70bcc544933e7ad462 SHA1 c88d4781e26bb187ed8371bf8e55efbef524c289 SHA256 76d3d9fa3e2d56ffa6925682d20866d04f004d04abb4ebe95cd4863859f09b1e
+MISC metadata.xml 233 RMD160 c09bfa841f493025c7bc20d512a23558d3ccb9ac SHA1 14d3df05b7bd31977e78dc6e15d4e4452f0f12cf SHA256 a324bcb7def3e2c5f83a3aca32391af4c3eb4653f83f0df020022551ac67c1cb
diff --git a/app-office/unoconv/files/unoconv-0.3-longer-timeout.patch b/app-office/unoconv/files/unoconv-0.3-longer-timeout.patch
new file mode 100644
index 000000000..6f0cd2e68
--- /dev/null
+++ b/app-office/unoconv/files/unoconv-0.3-longer-timeout.patch
@@ -0,0 +1,11 @@
+--- unoconv.~1~ 2010-04-08 17:05:44.000000000 +0200
++++ unoconv 2010-04-08 17:09:15.000000000 +0200
+@@ -375,7 +375,7 @@
+ error(2, "Trying to launch our own listener using %s." % bin)
+ try:
+ oopid = os.spawnvp(os.P_NOWAIT, bin, [bin, "-nologo", "-nodefault", "-accept=%s" % op.connection]);
+- time.sleep(1)
++ time.sleep(5)
+ unocontext = resolver.resolve("uno:%s" % op.connection)
+ break
+ except Exception, e:
diff --git a/app-office/unoconv/files/unoconv-0.3-openoffice-3.2.patch b/app-office/unoconv/files/unoconv-0.3-openoffice-3.2.patch
new file mode 100644
index 000000000..c45ae6c88
--- /dev/null
+++ b/app-office/unoconv/files/unoconv-0.3-openoffice-3.2.patch
@@ -0,0 +1,11 @@
+--- unoconv.~1~ 2007-09-01 03:23:13.000000000 +0200
++++ unoconv 2010-04-03 12:09:13.703092418 +0200
+@@ -17,7 +17,7 @@
+ import getopt, sys, os, glob, time
+
+ #extrapaths = ('/usr/lib/openoffice/program/', '/usr/lib/openoffice.org2.0/program/')
+-extrapaths = glob.glob('/usr/lib*/openoffice*/program/') + glob.glob('/usr/lib*/ooo*/program') + [ '/Applications/NeoOffice.app/Contents/program', ]
++extrapaths = glob.glob('/usr/lib*/openoffice*/basis*/program/') + glob.glob('/usr/lib*/openoffice*/program/') + glob.glob('/usr/lib*/ooo*/program') + [ '/Applications/NeoOffice.app/Contents/program', ]
+ for path in extrapaths:
+ try:
+ sys.path.append(path)
diff --git a/app-office/unoconv/files/unoconv-wrapper b/app-office/unoconv/files/unoconv-wrapper
new file mode 100644
index 000000000..d067888bf
--- /dev/null
+++ b/app-office/unoconv/files/unoconv-wrapper
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Wrapper for unoconv, see http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=262083
+# for more detail.
+
+OOO_BIN="/usr/lib/openoffice/program/python"
+OOO_SOURCE="/usr/bin/python"
+UNOCONV="/usr/share/unoconv/unoconv"
+
+if [ -x "${OOO_BIN}" ]; then
+ exec "${OOO_BIN}" "${UNOCONV}" "${@}"
+else
+ exec "${OOO_SOURCE}" "${UNOCONV}" "${@}"
+fi
diff --git a/app-office/unoconv/metadata.xml b/app-office/unoconv/metadata.xml
new file mode 100644
index 000000000..e32fd4b1f
--- /dev/null
+++ b/app-office/unoconv/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/app-office/unoconv/unoconv-0.3-r3.ebuild b/app-office/unoconv/unoconv-0.3-r3.ebuild
new file mode 100644
index 000000000..8947e0136
--- /dev/null
+++ b/app-office/unoconv/unoconv-0.3-r3.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Convert between any document format supported by OpenOffice"
+HOMEPAGE="http://dag.wieers.com/home-made/unoconv/"
+SRC_URI="http://dag.wieers.com/home-made/${PN}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-text/asciidoc
+ dev-python/setuptools"
+RDEPEND="|| ( app-office/openoffice app-office/openoffice-bin )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-openoffice-3.2.patch" \
+ "${FILESDIR}/${P}-longer-timeout.patch"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" bindir='$(prefix)/share/unoconv' || die
+ newbin "${FILESDIR}"/unoconv-wrapper unoconv || die
+}