commit:     e5b0cb1ba431079b864eba51e80bbe924b811a5b
Author:     Michal Privoznik <michal.privoznik <AT> gmail <DOT> com>
AuthorDate: Tue Oct 14 17:01:21 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 18 09:13:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5b0cb1b

dev-python/libvirt-python: Reflect tar name change in live ebuild

As of [1] libvirt-python release tarballs are named
'libvirt_python'. Reflect this name change in the live ebuild,
since ebuild for new releases are going to be copied from it.

This also removes replacement of "_rc" to "-rc" which might have
been useful back in the day when python bindings lived in libvirt
main repository, but they were moved to a separate repo ~12 years
ago [2].

1: 
https://gitlab.com/libvirt/libvirt-python/-/commit/a2047351b2889f611e229725971fd8cf7b3d284c
2: 
https://gitlab.com/libvirt/libvirt/-/commit/a7a1244a739d134a9aca7f76c12d63043810c077
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/libvirt-python-9999.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dev-python/libvirt-python/libvirt-python-9999.ebuild 
b/dev-python/libvirt-python/libvirt-python-9999.ebuild
index 001848fbae78..48f58863517d 100644
--- a/dev-python/libvirt-python/libvirt-python-9999.ebuild
+++ b/dev-python/libvirt-python/libvirt-python-9999.ebuild
@@ -20,18 +20,17 @@ if [[ ${PV} == *9999* ]]; then
        EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt-python.git";
        RDEPEND="app-emulation/libvirt:="
 else
-       MY_P="${P/_rc/-rc}"
+       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";
 
-S="${WORKDIR}/${P%_rc*}"
-
 LICENSE="LGPL-2"
 SLOT="0"
 IUSE="examples test"

Reply via email to