commit:     dfd4113c6373f7996ea8a7c7526a15ba92cae1ef
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  6 21:25:18 2024 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Mar  6 21:38:15 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfd4113c

app-portage/mirrorselect: enable PEP517 build

Closes: https://bugs.gentoo.org/841131
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-portage/mirrorselect/mirrorselect-2.4.0.ebuild | 7 +++++--
 app-portage/mirrorselect/mirrorselect-9999.ebuild  | 7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/app-portage/mirrorselect/mirrorselect-2.4.0.ebuild 
b/app-portage/mirrorselect/mirrorselect-2.4.0.ebuild
index dfd5e8b06d24..c4998fc017db 100644
--- a/app-portage/mirrorselect/mirrorselect-2.4.0.ebuild
+++ b/app-portage/mirrorselect/mirrorselect-2.4.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
 
-DISTUTILS_USE_SETUPTOOLS=no
+DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{10..11} )
 PYTHON_REQ_USE="xml(+)"
 
@@ -33,6 +33,7 @@ LICENSE="GPL-2"
 SLOT="0"
 IUSE="ipv6"
 
+BDEPEND="${DISTUTILS_DEPS}"
 RDEPEND="
        dev-util/dialog
        >=net-analyzer/netselect-0.4[ipv6(+)?]
@@ -45,6 +46,8 @@ python_prepare_all() {
        python_setup
 
        local -x VERSION="${PVR}"
+       sed -e 's:os.path.join(os.sep, EPREFIX.lstrip(os.sep), 
"usr/share/man/man8"):"share/man/man8":' \
+               -i setup.py || die
        eprefixify setup.py mirrorselect/main.py
        edo "${PYTHON}" setup.py set_version
 

diff --git a/app-portage/mirrorselect/mirrorselect-9999.ebuild 
b/app-portage/mirrorselect/mirrorselect-9999.ebuild
index 7bfb3b6cf4ec..7d03c0ba1219 100644
--- a/app-portage/mirrorselect/mirrorselect-9999.ebuild
+++ b/app-portage/mirrorselect/mirrorselect-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
 
-DISTUTILS_USE_SETUPTOOLS=no
+DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{10..11} )
 PYTHON_REQ_USE="xml(+)"
 
@@ -33,6 +33,7 @@ LICENSE="GPL-2"
 SLOT="0"
 IUSE="ipv6"
 
+BDEPEND="${DISTUTILS_DEPS}"
 RDEPEND="
        dev-util/dialog
        >=net-analyzer/netselect-0.4[ipv6(+)?]
@@ -45,6 +46,8 @@ python_prepare_all() {
        python_setup
 
        local -x VERSION="${PVR}"
+       sed -e 's:os.path.join(os.sep, EPREFIX.lstrip(os.sep), 
"usr/share/man/man8"):"share/man/man8":' \
+               -i setup.py || die
        eprefixify setup.py mirrorselect/main.py
        edo "${PYTHON}" setup.py set_version
 

Reply via email to