1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6..9} )
6 DISTUTILS_IN_SOURCE_BUILD=1
9 if [[ ${PV} == *9999 ]] ; then
10 EGIT_REPO_URI="https://github.com/pkgcore/pkgcore.git"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
14 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
17 DESCRIPTION="a framework for package management"
18 HOMEPAGE="https://github.com/pkgcore/pkgcore"
23 RESTRICT="!test? ( test )"
25 RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"
26 if [[ ${PV} == *9999 ]]; then
27 RDEPEND+=" ~dev-python/snakeoil-9999[${PYTHON_USEDEP}]"
29 RDEPEND+=" >=dev-python/snakeoil-0.8.7[${PYTHON_USEDEP}]"
32 dev-python/setuptools[${PYTHON_USEDEP}]
34 dev-python/pytest[${PYTHON_USEDEP}]
43 python_install_all() {
44 local DOCS=( AUTHORS NEWS.rst )
45 [[ ${PV} == *9999 ]] || doman man/*
46 distutils-r1_python_install_all