commit:     4d5bd18d586565ec99b12b02fce919a658189584
Author:     Michal Privoznik <michal.privoznik <AT> gmail <DOT> com>
AuthorDate: Thu Mar  6 13:34:27 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 10 02:11:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d5bd18d

dev-python/libvirt-python: Add 11.1.0

Signed-off-by: Michal Privoznik <michal.privoznik <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40927
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/libvirt-python/Manifest                 |  2 +
 .../libvirt-python/libvirt-python-11.1.0.ebuild    | 64 ++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/dev-python/libvirt-python/Manifest 
b/dev-python/libvirt-python/Manifest
index 8dbf49e58e74..dec389b51883 100644
--- a/dev-python/libvirt-python/Manifest
+++ b/dev-python/libvirt-python/Manifest
@@ -10,3 +10,5 @@ DIST libvirt-python-10.8.0.tar.gz 240883 BLAKE2B 
2871e690ee27a93139febde94a2e6cb
 DIST libvirt-python-10.8.0.tar.gz.asc 833 BLAKE2B 
c58fb89e2dc640edaac23b5e0c270a1974e6428b806197a6097d78c39888fa40f56294e6e2b7870791aa0320faf98e2ff99229e96476694742e14ec91daa4e1d
 SHA512 
930c8ddb0140d889da4a3d152f538beb5b36fc31dbe4b591ceaf53b070fb171be87a9081bd7ca1158f02ecc90124597887b3a09c39f8543da97b6c2996aaa233
 DIST libvirt-python-11.0.0.tar.gz 241103 BLAKE2B 
aa4ece183a98b25981fac6454725d7416990593cf7b71133f44f721a7e457e0c8469429049393ee0dba0d21718c69faebc503cfba63bdf71a5761d73724e941c
 SHA512 
58b30e5c40a911b91e71b3ac9298b2d54fd8dba7105a13257d0677c919a6adea01cd7c0115fa6c2e70f4dba539a587bb74634ae75f969156dff97ff97b34e66a
 DIST libvirt-python-11.0.0.tar.gz.asc 833 BLAKE2B 
8d8e415cc0bca4bfcccc608f27d016002cb1ce05c37c9a6d96d475c61d8fea60d31010d8baac55ce6f96b50141ea2843e212e6bf54fb9d1b527e510a4f7132fd
 SHA512 
2242071b14d0a0ba34e2e04f4553484dec9a1662cca379b1cf49ab9ca2f40d89f78ac2912ee9c6b1fabbc9aede53f4232e20003f6f1330e368ac6671cc9643be
+DIST libvirt-python-11.1.0.tar.gz 241110 BLAKE2B 
921be6848d275184d90c3aa55a50f66daa39e56ae73008f09a4b8f86ecfdcb2afa4ca13f2a3f396056cd28949f2095d1b40b62b0f0018d6164bb7fae3a67ecdb
 SHA512 
2183969fe3057722f3ab0412f331cefd5ae52f90e024207a36d94105826aacd3e9193889ef0bd6eb24921f0145c5d6256328431534f828c3607c92c10b6d46ba
+DIST libvirt-python-11.1.0.tar.gz.asc 833 BLAKE2B 
af5ead2015dc0fe7c56642625e9ceb4d4f460bf9ff24647794d9ee21ad8919029ac18b9298237a5abb1ff44e50ff9ff19d9bd57020106db106ccee294b848f27
 SHA512 
57d58031ccd654db103b0251655cc6e7dcf51adfd67bb457c2daee07c3681d9225f1c4c4da3e4cf7e433ec921c318a0e46314836194322d047c727db38b860cf

diff --git a/dev-python/libvirt-python/libvirt-python-11.1.0.ebuild 
b/dev-python/libvirt-python/libvirt-python-11.1.0.ebuild
new file mode 100644
index 000000000000..95dc7d2980ca
--- /dev/null
+++ b/dev-python/libvirt-python/libvirt-python-11.1.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Packages which get releases together:
+# app-emacs/nxml-libvirt-schemas
+# dev-python/libvirt-python
+# dev-perl/Sys-Virt
+# app-emulation/libvirt
+# Please bump them together!
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+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:="
+else
+       MY_P="${P/_rc/-rc}"
+       SRC_URI="https://download.libvirt.org/python/${MY_P}.tar.gz
+               verify-sig? ( 
https://download.libvirt.org/python/${MY_P}.tar.gz.asc )"
+       KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+       RDEPEND="app-emulation/libvirt:0/${PV}"
+fi
+
+DESCRIPTION="libvirt Python bindings"
+HOMEPAGE="https://www.libvirt.org";
+
+S="${WORKDIR}/${P%_rc*}"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="examples test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       virtual/pkgconfig
+       test? (
+               dev-python/lxml[${PYTHON_USEDEP}]
+       )
+       verify-sig? ( sec-keys/openpgp-keys-libvirt )
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libvirt.org.asc
+
+distutils_enable_tests pytest
+
+python_compile() {
+       # setuptools is broken for C extensions, bug #907718
+       distutils-r1_python_compile -j1
+}
+
+python_install_all() {
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+
+       distutils-r1_python_install_all
+}

Reply via email to