diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-05-20 09:37:53 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-05-20 10:28:10 +0200 |
commit | ccb41e740fdb087ea0f5100fab226d7f1f80318f (patch) | |
tree | 884e0e60b567b9ffc3724234a7e698ab852c8f8d /dev-python | |
parent | x11-misc/ydotool: Update the OpenRC unit name (diff) | |
download | gentoo-ccb41e740fdb087ea0f5100fab226d7f1f80318f.tar.gz gentoo-ccb41e740fdb087ea0f5100fab226d7f1f80318f.tar.bz2 gentoo-ccb41e740fdb087ea0f5100fab226d7f1f80318f.zip |
dev-python/PyQt5-sip: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
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)" |