diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2011-08-10 14:59:01 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2011-08-10 14:59:01 +0000 |
commit | 12b76124468f2554328d0555e36a76b1808dec72 (patch) | |
tree | ff3ac12eaa3335acf9563caa626fac25a4d86257 /dev-python/translate-toolkit | |
parent | Don't install .la files (diff) | |
download | gentoo-2-12b76124468f2554328d0555e36a76b1808dec72.tar.gz gentoo-2-12b76124468f2554328d0555e36a76b1808dec72.tar.bz2 gentoo-2-12b76124468f2554328d0555e36a76b1808dec72.zip |
Inital ebuild. Partialy fixes bug #153512. Thanks to the Ihar Hrachyshka for the ebuild. Not tested yet, just adding to cvs so i can deploy it on my testing machines, keywords will be added later.
(Portage version: 2.2.0_alpha50/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/translate-toolkit')
-rw-r--r-- | dev-python/translate-toolkit/ChangeLog | 12 | ||||
-rw-r--r-- | dev-python/translate-toolkit/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/translate-toolkit/translate-toolkit-1.9.0.ebuild | 70 |
3 files changed, 94 insertions, 0 deletions
diff --git a/dev-python/translate-toolkit/ChangeLog b/dev-python/translate-toolkit/ChangeLog new file mode 100644 index 000000000000..8725887cd1d1 --- /dev/null +++ b/dev-python/translate-toolkit/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-python/translate-toolkit +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/translate-toolkit/ChangeLog,v 1.1 2011/08/10 14:59:01 scarabeus Exp $ + +*translate-toolkit-1.9.0 (10 Aug 2011) + + 10 Aug 2011; Tomáš Chvátal <scarabeus@gentoo.org> + +translate-toolkit-1.9.0.ebuild, +metadata.xml: + Inital ebuild. Partialy fixes bug #153512. Thanks to the Ihar Hrachyshka for + the ebuild. Not tested yet, just adding to cvs so i can deploy it on my + testing machines, keywords will be added later. + diff --git a/dev-python/translate-toolkit/metadata.xml b/dev-python/translate-toolkit/metadata.xml new file mode 100644 index 000000000000..f70fdcfb37ea --- /dev/null +++ b/dev-python/translate-toolkit/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <herd>openoffice</herd> +<use> + <flag name="html">Support conversion between po and html files</flag> + <flag name="ical">Support conversion between po and ical files</flag> + <flag name="ini">Support conversion between po and ini files</flag> + <flag name="subtitles">Support conversion between po and sub files</flag> +</use> +</pkgmetadata> diff --git a/dev-python/translate-toolkit/translate-toolkit-1.9.0.ebuild b/dev-python/translate-toolkit/translate-toolkit-1.9.0.ebuild new file mode 100644 index 000000000000..5968f8d9ade1 --- /dev/null +++ b/dev-python/translate-toolkit/translate-toolkit-1.9.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2011 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.1 2011/08/10 14:59:01 scarabeus 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="" +IUSE="doc html ical ini subtitles" + +RDEPEND=" + app-text/iso-codes + dev-python/lxml + dev-python/psyco + dev-python/python-levenshtein + sys-devel/gettext + html? ( dev-python/utidylib ) + ical? ( dev-python/vobject ) + ini? ( dev-python/iniparse ) + subtitles? ( media-video/gaupol ) +" +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 +} |