1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_6} pypy3 )
10 DESCRIPTION="Utility library for i18n relied on by various Repoze packages"
11 HOMEPAGE="https://github.com/Pylons/translationstring https://pypi.org/project/translationstring/"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
19 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
22 # Include COPYRIGHT.txt because the license seems to require it.
23 DOCS=( COPYRIGHT.txt README.rst )
30 distutils-r1_src_install
32 # Install only the .rst source, as sphinx processing requires a
33 # theme only available from git that contains hardcoded references
34 # to files on https://static.pylonsproject.org/ (so the docs would
35 # not actually work offline). Install into a "docs" subdirectory
36 # so the reference in the README remains correct.
38 docompress -x usr/share/doc/${PF}/docs