commit:     46f7da87b8160cd6d809c568270b2857f67a8d35
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Tue May  9 22:40:12 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 10 01:26:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f7da87

www-client/elinks: fix compilation with USE="-nls"

USE="-nls" indicates no nls/gettext, so we should pass -Dgettext=false
in that case.

Bug: https://bugs.gentoo.org/888952
Signed-off-by: Felix Janda <felix.janda <AT> posteo.de>
Closes: https://github.com/gentoo/gentoo/pull/30963
Signed-off-by: Sam James <sam <AT> gentoo.org>

 www-client/elinks/elinks-0.16.1.1-r1.ebuild | 2 +-
 www-client/elinks/elinks-9999.ebuild        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-client/elinks/elinks-0.16.1.1-r1.ebuild 
b/www-client/elinks/elinks-0.16.1.1-r1.ebuild
index 298434da8a24..12588d437631 100644
--- a/www-client/elinks/elinks-0.16.1.1-r1.ebuild
+++ b/www-client/elinks/elinks-0.16.1.1-r1.ebuild
@@ -88,7 +88,7 @@ src_configure() {
                $(meson_use ftp)
                -Dfsp=false
                -Dgemini=false
-               -Dgettext=true
+               $(meson_use nls gettext)
                $(meson_use gopher)
                $(meson_use gpm)
                $(meson_use guile)

diff --git a/www-client/elinks/elinks-9999.ebuild 
b/www-client/elinks/elinks-9999.ebuild
index 180537f142e7..9261011bf874 100644
--- a/www-client/elinks/elinks-9999.ebuild
+++ b/www-client/elinks/elinks-9999.ebuild
@@ -88,7 +88,7 @@ src_configure() {
                $(meson_use ftp)
                -Dfsp=false
                -Dgemini=false
-               -Dgettext=true
+               $(meson_use nls gettext)
                $(meson_use gopher)
                $(meson_use gpm)
                $(meson_use guile)

Reply via email to