1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
9 if [[ ${PV} == *9999 ]] ; then
10 EGIT_REPO_URI="https://github.com/pkgcore/pychroot.git"
13 KEYWORDS="~amd64 ~x86"
14 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
17 DESCRIPTION="a python library and cli tool that simplify chroot handling"
18 HOMEPAGE="https://github.com/pkgcore/pychroot"
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 =dev-python/snakeoil-9999[${PYTHON_USEDEP}]
29 $(python_gen_cond_dep 'dev-python/3to2[${PYTHON_USEDEP}]' python2_7)
31 $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
32 dev-python/pytest[${PYTHON_USEDEP}]
34 [[ ${PV} == *9999 ]] && DEPEND+=" dev-python/sphinx[${PYTHON_USEDEP}]"
36 python_compile_all() {
37 [[ ${PV} == *9999 ]] && emake -C doc man
44 python_install_all() {
45 distutils-r1_python_install_all
46 if [[ ${PV} == *9999 ]]; then
47 emake -C doc PREFIX=/usr DESTDIR="${D}" install_man