summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2015-01-10 06:57:57 +0000
committerIan Delaney <idella4@gentoo.org>2015-01-10 06:57:57 +0000
commit6230213b91411c452bd2a07237de6439a88780b2 (patch)
tree5ccab61ad275fe6b02657379b930ba9880cc04af /dev-python/translate-toolkit
parentVersion bump. (diff)
downloadgentoo-2-6230213b91411c452bd2a07237de6439a88780b2.tar.gz
gentoo-2-6230213b91411c452bd2a07237de6439a88780b2.tar.bz2
gentoo-2-6230213b91411c452bd2a07237de6439a88780b2.zip
bump; re-write to update deps and convert to new eclass, version -1.10.0 found to be partially broken, rm old
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/translate-toolkit')
-rw-r--r--dev-python/translate-toolkit/ChangeLog11
-rw-r--r--dev-python/translate-toolkit/translate-toolkit-1.12.0.ebuild82
-rw-r--r--dev-python/translate-toolkit/translate-toolkit-1.9.0.ebuild68
3 files changed, 91 insertions, 70 deletions
diff --git a/dev-python/translate-toolkit/ChangeLog b/dev-python/translate-toolkit/ChangeLog
index 6ce3d433e235..97cc85dcbc33 100644
--- a/dev-python/translate-toolkit/ChangeLog
+++ b/dev-python/translate-toolkit/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/translate-toolkit
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/translate-toolkit/ChangeLog,v 1.10 2013/05/20 08:43:05 ago Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/translate-toolkit/ChangeLog,v 1.11 2015/01/10 06:57:57 idella4 Exp $
+
+*translate-toolkit-1.12.0 (10 Jan 2015)
+
+ 10 Jan 2015; Ian Delaney <idella4@gentoo.org>
+ +translate-toolkit-1.12.0.ebuild, -translate-toolkit-1.9.0.ebuild:
+ bump; re-write to update deps and convert to new eclass, version -1.10.0 found
+ to be partially broken, rm old
20 May 2013; Agostino Sarubbo <ago@gentoo.org>
translate-toolkit-1.10.0.ebuild:
diff --git a/dev-python/translate-toolkit/translate-toolkit-1.12.0.ebuild b/dev-python/translate-toolkit/translate-toolkit-1.12.0.ebuild
new file mode 100644
index 000000000000..f9df6e91f24b
--- /dev/null
+++ b/dev-python/translate-toolkit/translate-toolkit-1.12.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/translate-toolkit/translate-toolkit-1.12.0.ebuild,v 1.1 2015/01/10 06:57:57 idella4 Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="Toolkit to convert between many translation formats"
+HOMEPAGE="http://translate.sourceforge.net"
+SRC_URI="mirror://sourceforge/translate/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc +html +ical +ini +subtitles"
+
+RDEPEND="
+ app-text/iso-codes
+ sys-devel/gettext
+ dev-python/lxml[${PYTHON_USEDEP}]
+ >=dev-python/python-levenshtein-0.10.2[${PYTHON_USEDEP}]
+ !=dev-python/python-levenshtein-0.11.0[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/diff-match-patch[${PYTHON_USEDEP}]
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ html? ( dev-python/utidylib[${PYTHON_USEDEP}] )
+ ical? ( dev-python/vobject[${PYTHON_USEDEP}] )
+ ini? ( dev-python/iniparse[${PYTHON_USEDEP}] )"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ ${RDEPEND}"
+
+python_prepare_all() {
+ # Prevent unwanted d'loading in doc build
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py
+
+ distutils-r1_python_prepare_all
+ mkdir man
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( "${S}"/docs/_build/html/. )
+ distutils-r1_python_install_all
+ rm -Rf docs || die
+
+ local filename binary
+ einfo "Generating man pages..."
+ for binary in "${D}"/usr/bin/*; do
+ filename=$(basename "${binary}")
+ ${file} --man > "${S}"/man/${filename}.1 2> /dev/null
+ done
+ # doman doesn't want to work
+ insinto /usr/share/man
+ doins man/*.1
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ if ! use html; then
+ rm "${D}"/usr/bin/html2po || die
+ rm "${D}"/usr/bin/po2html || die
+ fi
+ if ! use ical; then
+ rm "${D}"/usr/bin/ical2po || die
+ rm "${D}"/usr/bin/po2ical || die
+ fi
+ if ! use ini; then
+ rm "${D}"/usr/bin/ini2po || die
+ rm "${D}"/usr/bin/po2ini || die
+ fi
+ if ! use subtitles; then
+ rm "${D}"/usr/bin/sub2po || die
+ rm "${D}"/usr/bin/po2sub || die
+ fi
+}
diff --git a/dev-python/translate-toolkit/translate-toolkit-1.9.0.ebuild b/dev-python/translate-toolkit/translate-toolkit-1.9.0.ebuild
deleted file mode 100644
index 3b39cb1af26c..000000000000
--- a/dev-python/translate-toolkit/translate-toolkit-1.9.0.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/translate-toolkit/translate-toolkit-1.9.0.ebuild,v 1.6 2012/05/24 12:53:04 johu Exp $
-
-EAPI=3
-
-PYTHON_USE_WITH="sqlite"
-PYTHON_DEPEND="2:2.6"
-PYTHON_MODNAME=translate
-
-inherit distutils python
-
-DESCRIPTION="Toolkit to convert between many translation formats"
-HOMEPAGE="http://translate.sourceforge.net"
-SRC_URI="mirror://sourceforge/translate/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
-IUSE="doc +html +ical +ini +subtitles"
-
-RDEPEND="
- app-text/iso-codes
- dev-python/lxml
- dev-python/python-levenshtein
- sys-devel/gettext
- html? ( dev-python/utidylib )
- ical? ( dev-python/vobject )
- ini? ( dev-python/iniparse )
-"
-DEPEND="${RDEPEND}"
-
-src_install() {
- local filename binary
-
- dohtml -r translate/doc/{index.html,README,user} || die
- use doc && { dohtml -r translate/doc/api/* || die ; }
- rm -Rf translate/doc || die
-
- distutils_src_install
-
- if ! use html; then
- rm "${ED}"/usr/bin/html2po || die
- rm "${ED}"/usr/bin/po2html || die
- fi
- if ! use ical; then
- rm "${ED}"/usr/bin/ical2po || die
- rm "${ED}"/usr/bin/po2ical || die
- fi
- if ! use ini; then
- rm "${ED}"/usr/bin/ini2po || die
- rm "${ED}"/usr/bin/po2ini || die
- fi
- if ! use subtitles; then
- rm "${ED}"/usr/bin/sub2po || die
- rm "${ED}"/usr/bin/po2sub || die
- fi
-
- einfo "Generating man pages..."
- for binary in "${ED}"/usr/bin/*; do
- filename=$(basename "${binary}")
- PYTHONPATH=${WORKDIR}/${PF}:${PYTHONPATH}
-
- if ${file} --man > "${T}/${filename}.1" 2> /dev/null; then
- doman "${T}/${filename}.1" || die
- fi
- done
-}