commit:     89fbae1856b015f04be67018be76c9f74b9a225e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 22 19:56:52 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov 22 20:00:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89fbae18

dev-python/PyQt6-WebEngine: Add PYPI_PN prior to rename

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.7.0.ebuild             | 4 +++-
 .../PyQt6-WebEngine/PyQt6-WebEngine-6.8.0_pre2411020930.ebuild      | 6 ++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.7.0.ebuild 
b/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.7.0.ebuild
index 9692b479ada6..6e0e5571b4dc 100644
--- a/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.7.0.ebuild
+++ b/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.7.0.ebuild
@@ -6,8 +6,10 @@ EAPI=8
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=sip
 PYPI_NO_NORMALIZE=1
-PYPI_PN=${PN/-/_}
+# actually, it's PyQt6-WebEngine but upstream uses incorrect sdist name
+PYPI_PN=PyQt6_WebEngine
 PYTHON_COMPAT=( python3_{10..13} )
+
 inherit distutils-r1 flag-o-matic multiprocessing pypi qmake-utils
 
 QT_PV=$(ver_cut 1-2):6

diff --git 
a/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.8.0_pre2411020930.ebuild 
b/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.8.0_pre2411020930.ebuild
index a56dd8b35eaf..fbf1852e77b0 100644
--- a/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.8.0_pre2411020930.ebuild
+++ b/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.8.0_pre2411020930.ebuild
@@ -6,8 +6,10 @@ EAPI=8
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=sip
 PYPI_NO_NORMALIZE=1
-PYPI_PN=${PN/-/_}
+# actually, it's PyQt6-WebEngine but upstream uses incorrect sdist name
+PYPI_PN=PyQt6_WebEngine
 PYTHON_COMPAT=( python3_{10..13} )
+
 inherit distutils-r1 flag-o-matic multiprocessing qmake-utils # pypi
 
 QT_PV=$(ver_cut 1-2):6
@@ -16,7 +18,7 @@ DESCRIPTION="Python bindings for QtWebEngine"
 HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/";
 
 # TODO: drop this and uncomment 'pypi' on a proper bump
-MY_P=${PN/-/_}-$(ver_cut 1-3).dev$(ver_cut 5)
+MY_P=${PYPI_PN}-$(ver_cut 1-3).dev$(ver_cut 5)
 
SRC_URI="https://www.riverbankcomputing.com/pypi/packages/PyQt6-WebEngine/${MY_P}.tar.gz";
 S=${WORKDIR}/${MY_P}
 

Reply via email to