commit:     7b28915ec0de103e6ccb7c5adb4c5ea5c9fbf649
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 07:34:33 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri May  9 07:09:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b28915e

dev-libs/newt: cleanup python version selection

Back in 2018, version 0.52.21 got a dedicated configure parameter to
override the `ls /usr/include/python*/Python.h` used by default.

It was anyways pointless to pass it to econf and then individually
override it in every call to make, since the configure script doesn't
even try to look at the existing value. But anyways it's been six years
since it was relevant to use overrides. Get rid of them and use econf.

in fact, passing PYTHON at configure time was totally broken anyway. It
specifically needs EPYTHON, no full paths. This was correct when passing
the values to make.

Bug: https://pagure.io/newt/issue/3
Acked-by: Ben Kohler <bkohler <AT> gentoo.org>
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-libs/newt/newt-0.52.25.ebuild | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/dev-libs/newt/newt-0.52.25.ebuild 
b/dev-libs/newt/newt-0.52.25.ebuild
index afe3ada34bcd..4575172a641e 100644
--- a/dev-libs/newt/newt-0.52.25.ebuild
+++ b/dev-libs/newt/newt-0.52.25.ebuild
@@ -67,7 +67,7 @@ src_prepare() {
 src_configure() {
        configuring() {
                econf \
-                       PYTHONVERS="${PYTHON}" \
+                       --with-python="${EPYTHON}" \
                        $(use_with gpm gpm-support) \
                        $(use_with tcl) \
                        $(use_enable nls)
@@ -76,10 +76,7 @@ src_configure() {
 }
 
 src_compile() {
-       building() {
-               emake PYTHONVERS="${EPYTHON}"
-       }
-       python_foreach_impl run_in_build_dir building
+       python_foreach_impl run_in_build_dir emake
 }
 
 src_install() {
@@ -87,7 +84,6 @@ src_install() {
                emake \
                        DESTDIR="${D}" \
                        PYTHON_SITEDIR="$(python_get_sitedir)" \
-                       PYTHONVERS="${EPYTHON}" \
                        install
                python_optimize
        }

Reply via email to