summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-17 19:04:05 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-17 19:28:07 +0100
commitccbb59431e4fdd5169e7dbf25ad3a7441bf1214c (patch)
treedda5850b44e9291c1b6d3a5a1b48de5ea236461c /dev-python/zope-component
parentmedia-gfx/librecad: Stabilize 2.2.0 amd64, #901897 (diff)
downloadgentoo-ccbb59431e4fdd5169e7dbf25ad3a7441bf1214c.tar.gz
gentoo-ccbb59431e4fdd5169e7dbf25ad3a7441bf1214c.tar.bz2
gentoo-ccbb59431e4fdd5169e7dbf25ad3a7441bf1214c.zip
dev-python/zope-component: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/zope-component')
-rw-r--r--dev-python/zope-component/zope-component-5.1.0.ebuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/dev-python/zope-component/zope-component-5.1.0.ebuild b/dev-python/zope-component/zope-component-5.1.0.ebuild
index 2cdd95425206..62c89b36eddd 100644
--- a/dev-python/zope-component/zope-component-5.1.0.ebuild
+++ b/dev-python/zope-component/zope-component-5.1.0.ebuild
@@ -6,17 +6,15 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
-inherit distutils-r1
+inherit distutils-r1 pypi
-MY_PN=zope.component
-MY_P=${MY_PN}-${PV}
DESCRIPTION="Zope Component Architecture"
HOMEPAGE="
https://pypi.org/project/zope.component/
https://github.com/zopefoundation/zope.component/
"
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
-S=${WORKDIR}/${MY_P}
+SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")"
+S=${WORKDIR}/${P/-/.}
LICENSE="ZPL"
SLOT="0"