dev-python/translationstring: readd package in tree

This commit is contained in:
nemunaire 2020-05-15 12:59:46 +02:00
parent 643ac413ba
commit 0de7324889
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST translationstring-1.3.tar.gz 29259 BLAKE2B 650c4e294796e1409246cf2f4effdd58bffecc2912e57ea4268d77d38997d2997b329936749af10c8c7625729a6503288cb8aa54baf1a3c07b3671cda0561833 SHA512 deba5b460d9ea640087cff8b5d7b9256708abd4340a54556f1f0542e2e4f9f0ae0a3482b66a176712fcd6925c470da621adbc5e4c4173c0ef29b9cca5fba1102
EBUILD translationstring-1.3.ebuild 1091 BLAKE2B 270faf31b141fe400b2d629f0facad0c652baab2884ab57a212838dd784121dd3a70be1b0a3cd8d7654128724972804784a2eb9588f246a7c232aac4e466b049 SHA512 fed14dedc86e380e7f537107e5e165fe8cd6fd1bd3bebf13f1806aa4c247f038c1f51c9f2a836c1aa3ca60cf395090b286792aa24753bcb6bad6e1815036cdfa

View File

@ -0,0 +1,40 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python{2_7,3_6} pypy3 )
inherit distutils-r1
DESCRIPTION="Utility library for i18n relied on by various Repoze packages"
HOMEPAGE="https://github.com/Pylons/translationstring https://pypi.org/project/translationstring/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="repoze"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
# Include COPYRIGHT.txt because the license seems to require it.
DOCS=( COPYRIGHT.txt README.rst )
python_test() {
esetup.py test
}
src_install() {
distutils-r1_src_install
# Install only the .rst source, as sphinx processing requires a
# theme only available from git that contains hardcoded references
# to files on https://static.pylonsproject.org/ (so the docs would
# not actually work offline). Install into a "docs" subdirectory
# so the reference in the README remains correct.
docinto docs
docompress -x usr/share/doc/${PF}/docs
dodoc docs/*.rst
}