summaryrefslogtreecommitdiff
path: root/dev-python/libvirt-python/libvirt-python-8.2.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-03 13:40:56 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-03 13:40:56 +0000
commitc2611f0d39546c2b9bee2162826cf954e61faf12 (patch)
tree020226feed2e7cfa462100f88cc9a495eba239f1 /dev-python/libvirt-python/libvirt-python-8.2.0.ebuild
parent3786fb56b73c6c1a046bebea4f33d8a005a72c3e (diff)
downloadbaldeagleos-repo-c2611f0d39546c2b9bee2162826cf954e61faf12.tar.gz
baldeagleos-repo-c2611f0d39546c2b9bee2162826cf954e61faf12.tar.xz
baldeagleos-repo-c2611f0d39546c2b9bee2162826cf954e61faf12.zip
Adding metadata
Diffstat (limited to 'dev-python/libvirt-python/libvirt-python-8.2.0.ebuild')
-rw-r--r--dev-python/libvirt-python/libvirt-python-8.2.0.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/libvirt-python/libvirt-python-8.2.0.ebuild b/dev-python/libvirt-python/libvirt-python-8.2.0.ebuild
new file mode 100644
index 000000000000..acd6f3b0f888
--- /dev/null
+++ b/dev-python/libvirt-python/libvirt-python-8.2.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Please bump with app-emulation/libvirt!
+
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+DISTUTILS_USE_SETUPTOOLS=no
+MY_P="${P/_rc/-rc}"
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/libvirt.org.asc
+inherit distutils-r1 verify-sig
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt-python.git"
+ RDEPEND="app-emulation/libvirt:=[-python(-)]"
+else
+ SRC_URI="https://libvirt.org/sources/python/${MY_P}.tar.gz
+ verify-sig? ( https://libvirt.org/sources/python/${MY_P}.tar.gz.asc )"
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+ RDEPEND="app-emulation/libvirt:0/${PV}"
+fi
+S="${WORKDIR}/${P%_rc*}"
+
+DESCRIPTION="libvirt Python bindings"
+HOMEPAGE="https://www.libvirt.org"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="examples test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+ verify-sig? ( sec-keys/openpgp-keys-libvirt )
+"
+
+distutils_enable_tests setup.py
+
+python_install_all() {
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ distutils-r1_python_install_all
+}