commit:     4c72bd02b4e6d18ec266975eab6946d6546a976d
Author:     Michal Privoznik <michal.privoznik <AT> gmail <DOT> com>
AuthorDate: Tue Oct 14 17:07:11 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 18 09:13:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c72bd02

dev-python/libvirt-python: Add 11.8.0

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

 dev-python/libvirt-python/Manifest                 |  2 +
 .../libvirt-python/libvirt-python-11.8.0.ebuild    | 63 ++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/dev-python/libvirt-python/Manifest 
b/dev-python/libvirt-python/Manifest
index 6edf10b166ac..be0fe4ada34b 100644
--- a/dev-python/libvirt-python/Manifest
+++ b/dev-python/libvirt-python/Manifest
@@ -1,2 +1,4 @@
 DIST libvirt-python-11.6.0.tar.gz 242654 BLAKE2B 
33150ead07e0329768ddec082b36e69a71235b5083004afdc0293a78f79b9df3605e5d8cb8bc4ec3a4523c8846fe201203d3e4ff0a0ceddaa23989b156199bb9
 SHA512 
06c09e8c62eafe11cb2419f8a13e040e9f4380591b235d1debdfc29e11b9f62535c1d8285e19bc190528dc3d987076bd39511c1c734b4bd590937d788977f05b
 DIST libvirt-python-11.6.0.tar.gz.asc 833 BLAKE2B 
342066ba8d6f82f310908a532f507dcb6b47ea3df810b2d54e537cf7965d42df87fc1a4647fc3c581ce4cc07f69ffa8eecda1467d11fa15f0c9d53f15de7c97c
 SHA512 
75d8c79cd4157c3e1787cdd3c0fbf2ea3265e48d65d7d0fce2a4741ac5199026d01773799e0cf7861d948a2515ebcc468d56b93cafa9d4cb23d004efba864a24
+DIST libvirt_python-11.8.0.tar.gz 242986 BLAKE2B 
df2262200aea58f4198cbe0e94639e000053d0e0451e5314227aff79971739b704442312c33f02e7c6e452fc66f2d26db13ee4c017109b7e69aeebb4d04997ad
 SHA512 
8a82169d8b7c17d16150d8441900c4e1bac620c079d681a6c8e76d5b4924b65d7c13e3e04d776f23304ea594da7eb35f97d6e5915931397a14bb466b5f20ee3f
+DIST libvirt_python-11.8.0.tar.gz.asc 833 BLAKE2B 
7fbd65fc891a026568498d5d1118feb360054a3a1df647285622ef9ea0203fed510750b1e265b246bf9ab4cda695ded904f64f1a020cd8aff565e14ac9866c42
 SHA512 
0165d5fcd91f181e22bd27b663bb8492190572b67102f5695fd097fdfa4e6db70d8e93f3717e53cd3bb44ec80f6a1c4ccbc017485bce2bc3b53c65d447f27e92

diff --git a/dev-python/libvirt-python/libvirt-python-11.8.0.ebuild 
b/dev-python/libvirt-python/libvirt-python-11.8.0.ebuild
new file mode 100644
index 000000000000..48f58863517d
--- /dev/null
+++ b/dev-python/libvirt-python/libvirt-python-11.8.0.ebuild
@@ -0,0 +1,63 @@
+# 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_{11..14} )
+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/-/_}"
+       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}"
+       S="${WORKDIR}/${MY_P}"
+fi
+
+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}]
+       )
+       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