From 107567f5f1c69703403ca3ae8067e047cd5da1d1 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 20 May 2023 10:41:54 +0200 Subject: dev-python/wxpython: Use pypi.eclass in older version(s) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/wxpython/wxpython-4.0.7-r4.ebuild | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'dev-python/wxpython') diff --git a/dev-python/wxpython/wxpython-4.0.7-r4.ebuild b/dev-python/wxpython/wxpython-4.0.7-r4.ebuild index 03f66f04f701..7b34ac3aec81 100644 --- a/dev-python/wxpython/wxpython-4.0.7-r4.ebuild +++ b/dev-python/wxpython/wxpython-4.0.7-r4.ebuild @@ -2,19 +2,18 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) -WX_GTK_VER="3.0-gtk3" DISTUTILS_IN_SOURCE_BUILD="1" +PYTHON_COMPAT=( python3_{9..10} ) +PYPI_NO_NORMALIZE=1 +PYPI_PN="wxPython" +WX_GTK_VER="3.0-gtk3" -inherit distutils-r1 multiprocessing virtualx wxwidgets - -MY_PN="wxPython" -MY_PV="${PV}.post2" +inherit distutils-r1 multiprocessing virtualx wxwidgets pypi DESCRIPTION="A blending of the wxWindows C++ class library with Python" HOMEPAGE="https://www.wxpython.org/" -SRC_URI="mirror://pypi/${P:0:1}/${MY_PN}/${MY_PN}-${MY_PV}.tar.gz" +SRC_URI="$(pypi_sdist_url --no-normalize "${PYPI_PN}" "${PV}.post2")" LICENSE="wxWinLL-3" SLOT="4.0" @@ -45,7 +44,7 @@ BDEPEND="${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )" -S="${WORKDIR}/${MY_PN}-${MY_PV}" +S="${WORKDIR}/${PYPI_PN}-${PV}.post2" PATCHES=( "${FILESDIR}/${PN}-4.0.6-skip-broken-tests.patch" -- cgit v1.2.3-65-gdbad