diff options
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/PyQt5-sip/PyQt5-sip-12.12.0.ebuild | 8 | ||||
-rw-r--r-- | dev-python/PyQt5-sip/PyQt5-sip-12.12.1.ebuild | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/dev-python/PyQt5-sip/PyQt5-sip-12.12.0.ebuild b/dev-python/PyQt5-sip/PyQt5-sip-12.12.0.ebuild index c2e8bc17898f..c18c7e8c8b47 100644 --- a/dev-python/PyQt5-sip/PyQt5-sip-12.12.0.ebuild +++ b/dev-python/PyQt5-sip/PyQt5-sip-12.12.0.ebuild @@ -5,6 +5,8 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/_} PYTHON_COMPAT=( python3_{9..11} ) inherit distutils-r1 @@ -12,13 +14,13 @@ inherit distutils-r1 DESCRIPTION="sip extension module for PyQt5" HOMEPAGE="https://www.riverbankcomputing.com/software/sip/ https://pypi.org/project/PyQt5-sip/" -MY_P=${PN/-/_}-${PV/_pre/.dev} if [[ ${PV} == *_pre* ]]; then + MY_P=${PYPI_PN}-${PV/_pre/.dev} SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" + inherit pypi fi -S="${WORKDIR}/${MY_P}" LICENSE="|| ( GPL-2 GPL-3 SIP )" SLOT="0/$(ver_cut 1)" diff --git a/dev-python/PyQt5-sip/PyQt5-sip-12.12.1.ebuild b/dev-python/PyQt5-sip/PyQt5-sip-12.12.1.ebuild index 1906637cae9b..469e940e7fbd 100644 --- a/dev-python/PyQt5-sip/PyQt5-sip-12.12.1.ebuild +++ b/dev-python/PyQt5-sip/PyQt5-sip-12.12.1.ebuild @@ -5,6 +5,8 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/_} PYTHON_COMPAT=( python3_{9..11} ) inherit distutils-r1 @@ -12,13 +14,13 @@ inherit distutils-r1 DESCRIPTION="sip extension module for PyQt5" HOMEPAGE="https://www.riverbankcomputing.com/software/sip/ https://pypi.org/project/PyQt5-sip/" -MY_P=${PN/-/_}-${PV/_pre/.dev} if [[ ${PV} == *_pre* ]]; then + MY_P=${PYPI_PN}-${PV/_pre/.dev} SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" + inherit pypi fi -S="${WORKDIR}/${MY_P}" LICENSE="|| ( GPL-2 GPL-3 SIP )" SLOT="0/$(ver_cut 1)" |