Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-python/translate-toolkit/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST translate_toolkit-3.15.1.tar.gz 1197864 BLAKE2B cd32289b9622f3079677473cd6c164595a6d4917026257b62609f8d57d207dd30a2a50557e6725174a82df70f81be165f8c4bea6ae5961cd631acb26ff4a451f SHA512 85bd3d64f33884f1ff63df09b2f7d12360676685b821ac8b22e422f5820799aec24487e89ab84460fb2c0ff7f92342603aee3fa3e10e91f9c09108b2dee82c6e
DIST translate_toolkit-3.15.2.tar.gz 1198493 BLAKE2B 2de9eb409fc167070694cdc4fd9d38367289f56358bcca2d0e6096ec44d79f9fd248703a62ba9031fe3516cc5c918349b134c88fed2b7b30d3f7a5e7fc48f481 SHA512 c3561aa776d1982bc775c2b07b5ac8e90a791bfd042c00cafcc6a45ca12403985ff554c7c782bf6254408e14c9bbc093850dd4e525e86c3d59afd25a49a89d37
59 changes: 59 additions & 0 deletions dev-python/translate-toolkit/translate-toolkit-3.15.2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3+ )
DISTUTILS_USE_SETUPTOOLS="rdepend"
inherit distutils-r1

DESCRIPTION="Toolkit to convert between many translation formats"
HOMEPAGE="https://github.com/translate/translate"
SRC_URI="https://files.pythonhosted.org/packages/f2/35/7264ad40d8ef95db2cdceadd808b479c5c289068bc2809db0ed265cc6f3c/translate_toolkit-3.15.2.tar.gz -> translate_toolkit-3.15.2.tar.gz"

DEPEND=""
RDEPEND="
!dev-python/pydiff
app-text/iso-codes
sys-devel/gettext
>=dev-python/six-1.11.0[${PYTHON_USEDEP}]
>=dev-python/chardet-3.0.4[${PYTHON_USEDEP}]
dev-python/cheroot[${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}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
html? ( dev-python/utidylib[${PYTHON_USEDEP}] )
ical? ( dev-python/vobject[${PYTHON_USEDEP}] )
ini? ( >=dev-python/iniparse-0.5[${PYTHON_USEDEP}] )
yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] )
subtitles? ( media-video/gaupol[${PYTHON_USEDEP}] )"
IUSE="+html +ical +ini +subtitles +yaml"
RESTRICT="test"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="*"
S="${WORKDIR}/translate_toolkit-3.15.2"

distutils_enable_sphinx docs dev-python/sphinx-bootstrap-theme
src_prepare() {
sed -i -e 's#"docs", "share"#"share"#' setup.py
distutils-r1_src_prepare
}

python_install_all() {
distutils-r1_python_install_all

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
}
Loading