diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
commit | 38423c67c8a23f6a1bc42038193182e2da3116eb (patch) | |
tree | 04e2cf4bd43601b77daa79fe654e409187093c5e /dev-python/translate-toolkit | |
parent | 623ee73d661e5ed8475cb264511f683407d87365 (diff) |
gentoo resync : 25.04.2020
Diffstat (limited to 'dev-python/translate-toolkit')
-rw-r--r-- | dev-python/translate-toolkit/Manifest | 4 | ||||
-rw-r--r-- | dev-python/translate-toolkit/translate-toolkit-2.4.0.ebuild | 7 | ||||
-rw-r--r-- | dev-python/translate-toolkit/translate-toolkit-2.5.0.ebuild | 77 |
3 files changed, 83 insertions, 5 deletions
diff --git a/dev-python/translate-toolkit/Manifest b/dev-python/translate-toolkit/Manifest index b47fee89ba57..728c31672ff0 100644 --- a/dev-python/translate-toolkit/Manifest +++ b/dev-python/translate-toolkit/Manifest @@ -1,3 +1,5 @@ DIST translate-toolkit-2.4.0.tar.gz 7646438 BLAKE2B 5d956ce05b57aa3ec2c7896a36f199cab5a590d4d6a4ad84263d7b757e35d5e42a40cac38ea3da1c8a11c64b1cacff5a5742b79ad5a87436842a35547d89e611 SHA512 715d9e974c451a5c3d92471287f4da8e8ba663efda849398f77a3c3d6f16e0c9a8e685261ec07c02ce9bd13f3766f0b2b1ad441b92116bb3913036ffbd415658 -EBUILD translate-toolkit-2.4.0.ebuild 2022 BLAKE2B 4ba4ce0f57929e569f8453fd0640e8504838d701e99f32eba497b54aa00ecf73ce67936ce0df4e759f54cb289cf4a093a60f67120bd8d17383cf8d4611abbda2 SHA512 3af510327195e52e13d7c473b0be4ceb9e0c3df236082320c29c8b6db92f73cb7f95611d9f58d56b41ce3500ffd8c1b5fc721e43ffb89ed36462cbbc33cd5bdf +DIST translate-toolkit-2.5.0.tar.gz 7679224 BLAKE2B 927b0dcfc0836ed2f2589d70f5789fc6d8b23a3e80bf4ef0054704ca12e4b5287a7e3b2a90992197bae6fc0acee1ea9d93a8eff05f6e5182f9269ca2aa9e5a66 SHA512 c4ff8fe9e7cc5b44a5448391ecbcfc454bf32d3794267e67824b020ca78cfbeba1283287a42f07859cd197a413fe8171ad5e31375f60fec77f334642ed2ad13e +EBUILD translate-toolkit-2.4.0.ebuild 1909 BLAKE2B ae816dbf3748c3a794b5593773480b2886dc4637121f4d27776bc88e48a55013ea712ca88eb66716173a8ff16a340f679ee5dc70c88bc62ca76a40952dbb2869 SHA512 db6aacf34558c4bbbdabde084e53a4d5e67726b1ea54bed21fb513932e0f70c1716556ed9495fea47638b0bb8c6b445f97b1fd075fa983a808f9be4b38546f55 +EBUILD translate-toolkit-2.5.0.ebuild 1933 BLAKE2B 671b744e195515719851b9994d1afadda327c195b26a0f2508f4dd668fa5c072b8a0b7acef0d2dea8c19844b75b4e5a40b8aeadca2813f6a012ab3b75b6f1f1b SHA512 f8b38a801c00d6e4152566edf102e4abc23d636b6d7b3e508e11001fb29a612d362a85c49d9dffdf8d11d003643c0022910b8c550294b8a5086201ef57329dc2 MISC metadata.xml 666 BLAKE2B 8f550fcb2d34ecd84e4125645f127260c154022bd7cf03b7742313632627c207a476f1e4a98c83b5d5890beff7558ec548f16c675135822d790146c842bec04b SHA512 34bae48b0be0aa5ef195757bded33736a051ad563ceac7be514bee3b54c67637f308d7a7844fa0657bbb4bc6ad987bd3ee9b04d65d16fdbd6d5d7791e4bd155d diff --git a/dev-python/translate-toolkit/translate-toolkit-2.4.0.ebuild b/dev-python/translate-toolkit/translate-toolkit-2.4.0.ebuild index 47d469e37696..95b94c3da370 100644 --- a/dev-python/translate-toolkit/translate-toolkit-2.4.0.ebuild +++ b/dev-python/translate-toolkit/translate-toolkit-2.4.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6,7} ) PYTHON_REQ_USE="sqlite" inherit distutils-r1 @@ -17,8 +17,7 @@ SLOT="0" KEYWORDS="amd64 arm64 x86 ~amd64-linux ~x86-linux" IUSE="doc +html +ical +ini +subtitles +yaml" -REQUIRED_USE="${PYTHON_REQUIRED_USE} - subtitles? ( || ( $(python_gen_useflags python3_6 python3_7) ) )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" BDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] @@ -38,7 +37,7 @@ RDEPEND="${DEPEND} 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_6 python3_7) ) + subtitles? ( media-video/gaupol[${PYTHON_USEDEP}] ) yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] ) " diff --git a/dev-python/translate-toolkit/translate-toolkit-2.5.0.ebuild b/dev-python/translate-toolkit/translate-toolkit-2.5.0.ebuild new file mode 100644 index 000000000000..0686fe28f54b --- /dev/null +++ b/dev-python/translate-toolkit/translate-toolkit-2.5.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_REQ_USE="sqlite" +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +DESCRIPTION="Toolkit to convert between many translation formats" +HOMEPAGE="https://github.com/translate/translate" +SRC_URI="https://github.com/translate/translate/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc +html +ical +ini +subtitles +yaml" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + doc? ( >=dev-python/sphinx-3.0.1 ) +" +DEPEND=" + >=dev-python/six-1.11.0[${PYTHON_USEDEP}] +" +RDEPEND="${DEPEND} + !dev-python/pydiff + app-text/iso-codes + >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}] + >=dev-python/lxml-4.3.1[${PYTHON_USEDEP}] + >=dev-python/pycountry-19.8.18[${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? ( media-video/gaupol[${PYTHON_USEDEP}] ) + yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] ) +" + +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 + + python_optimize +} |