commit:     314c1a45c6d0249caed3c81ea1b7501c74e84298
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Sun May 11 04:35:16 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Sun May 11 06:40:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=314c1a45

dev-libs/newt: fix python optionality

- we can't call python_foreach_impl if all targets are unset, which is
  permitted if python is optional
- somehow I switched back to calling with EPYTHON instead of versions,
  this was plainly wrong
- $(use_with) *must* be additionally quoted if withval itself is quoted
  and contains spaces, or we lose the spaces again

Closes: https://bugs.gentoo.org/955709
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

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

diff --git a/dev-libs/newt/newt-0.52.25-r1.ebuild 
b/dev-libs/newt/newt-0.52.25-r1.ebuild
index c5169cf0c27f..dcce44e08bf5 100644
--- a/dev-libs/newt/newt-0.52.25-r1.ebuild
+++ b/dev-libs/newt/newt-0.52.25-r1.ebuild
@@ -66,10 +66,10 @@ src_configure() {
        getversions() {
                versions+="${EPYTHON} "
        }
-       python_foreach_impl getversions
+       use python && python_foreach_impl getversions
 
        econf \
-               $(use_with python '' "${EPYTHON}") \
+               "$(use_with python '' "${versions}")" \
                $(use_with gpm gpm-support) \
                $(use_with tcl) \
                $(use_enable nls)

Reply via email to