summaryrefslogtreecommitdiff
path: root/dev-python/translate-toolkit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/translate-toolkit
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/translate-toolkit')
-rw-r--r--dev-python/translate-toolkit/Manifest5
-rw-r--r--dev-python/translate-toolkit/metadata.xml18
-rw-r--r--dev-python/translate-toolkit/translate-toolkit-2.0.0.ebuild82
3 files changed, 105 insertions, 0 deletions
diff --git a/dev-python/translate-toolkit/Manifest b/dev-python/translate-toolkit/Manifest
new file mode 100644
index 000000000000..e750912d7e01
--- /dev/null
+++ b/dev-python/translate-toolkit/Manifest
@@ -0,0 +1,5 @@
+DIST translate-toolkit-2.0.0.tar.gz 1106464 SHA256 aa6c68c786ec82f7bcfc03ac39c4dfe4669a45efc8e2fe24470fe61aaef8c41f SHA512 a349f64438683bb00a7a7ba0537b7c9a268e6222d2df67991eb5d47b05a446a6049bf42918edc97ba8b08a89a42850eb37f6b4b917ccf5c44494885a853ffe1f WHIRLPOOL 52d620c73b7feed483dd32aa8e28493ac7a9b610bafadce4effa58106d07bc8e2e3165e6a512c6c678f7a7fb980c2e69f134a992d55ef2b0f62a42596a0e3e3b
+EBUILD translate-toolkit-2.0.0.ebuild 2120 SHA256 da7d8537455a297e00733e122c8941c199b7186582baa88c33cbf11a1c43999c SHA512 1fa09202e57257a6afcfd91df7e948ab5e761124df084e8d784a73d8abc5d0923dfc77465c1dbeff70c4ec5b12396035300932827a3e3ec1b11a818a784027c3 WHIRLPOOL 1277a60205c29908e52c68540f32f3b13af085cd7b6f2d97b2739b88a4f39b253e2bf4db1207d42ee882b1a5e54bab749ce22f7148439ec3228ca5e11ca84fa5
+MISC ChangeLog 4570 SHA256 6b99ff0d57b6b3a293b46a9055c899cf99b50aba37bc73c3e3adf5f70568cd41 SHA512 dfb01434b30010435420fcb661e9a435bd99e046d60cbf386b3f69a5c26be03c02c4b95281caf400e017c61afd702c68531502301b58eb2310315028c3b5fb7e WHIRLPOOL 73bee43ba12f2a407ea527c70aa54b168216222568b42af33b97706610ee46653dcea1390cbde9d1fe777697530caa0c5748c3c1a69d10daadbcb79b8b211d2c
+MISC ChangeLog-2015 2560 SHA256 35074990b71360ebba8f55cef68b53e708f92d95d306ab0ea13986764b677496 SHA512 d62d736d441f855869ec965570c8f870d0453e7bc1646dfc8c1698ffe1bffb541d166d7850d9ef3c72e0ef12f83caa3e57f144b5d267e8ecb6217fdd27e8aa12 WHIRLPOOL c6240034a05cb73c1ade1ba2a7456e3f4d3dff91aeac0ade0ea23ca595f8775367bbafc9723ae3319b7441b27dd205e37ca4f381ece80b1b7f2e139fc4c891df
+MISC metadata.xml 666 SHA256 965128cf54a532aa95397a05ee5a13b6bb9a10f9cb654256113c83831230cbc1 SHA512 34bae48b0be0aa5ef195757bded33736a051ad563ceac7be514bee3b54c67637f308d7a7844fa0657bbb4bc6ad987bd3ee9b04d65d16fdbd6d5d7791e4bd155d WHIRLPOOL 3836980ce65bb674213df362bdbf6dba96899d8d5f062179114d16b62dd3bf7f703618da9dfd487bf3dc0c53d93550e7833e177843bf8d1de8e569a0b72c50b6
diff --git a/dev-python/translate-toolkit/metadata.xml b/dev-python/translate-toolkit/metadata.xml
new file mode 100644
index 000000000000..2ec8899b6fbb
--- /dev/null
+++ b/dev-python/translate-toolkit/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <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>
+ <flag name="yaml">Support YAML format</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">translate</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/translate-toolkit/translate-toolkit-2.0.0.ebuild b/dev-python/translate-toolkit/translate-toolkit-2.0.0.ebuild
new file mode 100644
index 000000000000..2e794beb9dc2
--- /dev/null
+++ b/dev-python/translate-toolkit/translate-toolkit-2.0.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/-toolkit}"
+MY_PV="${PV/_beta/b}"
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="Toolkit to convert between many translation formats"
+HOMEPAGE="https://github.com/translate/translate"
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc +html +ical +ini +subtitles +yaml"
+
+COMMON_DEPEND="
+ >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
+"
+DEPEND="${COMMON_DEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+"
+RDEPEND="${COMMON_DEPEND}
+ !dev-python/pydiff
+ app-text/iso-codes
+ >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}]
+ dev-python/diff-match-patch[${PYTHON_USEDEP}]
+ >=dev-python/lxml-3.5[${PYTHON_USEDEP}]
+ >=dev-python/python-levenshtein-0.12.0[${PYTHON_USEDEP}]
+ sys-devel/gettext
+ html? ( dev-python/utidylib[${PYTHON_USEDEP}] )
+ ical? ( dev-python/vobject[${PYTHON_USEDEP}] )
+ ini? ( dev-python/iniparse[${PYTHON_USEDEP}] )
+ subtitles? ( $(python_gen_cond_dep 'media-video/gaupol[${PYTHON_USEDEP}]' 'python3*') )
+ yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] )
+"
+
+REQUIRED_USE="
+ subtitles? ( || ( $(python_gen_useflags 'python3*') ) )
+"
+
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+python_prepare_all() {
+ # Prevent unwanted d'loading in doc build
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" \
+ -e "/html_theme/ s/sphinx-bootstrap/classic/" \
+ -i docs/conf.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ if use doc; then
+ emake -C docs html
+ HTML_DOCS=( "${S}"/docs/_build/html/. )
+ fi
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ rm -Rf docs || die
+ if ! use html; then
+ rm "${ED%/}"/usr/bin/{html2po,po2html} || die
+ fi
+ if ! use ical; then
+ rm "${ED%/}"/usr/bin/{ical2po,po2ical} || die
+ fi
+ if ! use ini; then
+ rm "${ED%/}"/usr/bin/{ini2po,po2ini} || die
+ fi
+ if ! use subtitles; then
+ rm "${ED%/}"/usr/bin/{sub2po,po2sub} || die
+ fi
+}