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,3_7} )
12 if [[ ${PV} = *9999* ]]; then
14 EGIT_REPO_URI="https://libvirt.org/git/libvirt-python.git"
17 RDEPEND="app-emulation/libvirt:=[-python(-)]"
19 SRC_URI="https://libvirt.org/sources/python/${MY_P}.tar.gz"
20 KEYWORDS="amd64 ~arm64 x86"
21 RDEPEND="app-emulation/libvirt:0/${PV}"
23 S="${WORKDIR}/${P%_rc*}"
25 DESCRIPTION="libvirt Python bindings"
26 HOMEPAGE="https://www.libvirt.org"
30 RESTRICT="!test? ( test )"
34 test? ( dev-python/lxml[${PYTHON_USEDEP}]
35 dev-python/nose[${PYTHON_USEDEP}] )"
41 python_install_all() {
44 docompress -x /usr/share/doc/${PF}/examples
46 distutils-r1_python_install_all