commit:     4186e5ffd078b49c1defd6165952ce760a07ae24
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  5 09:58:05 2025 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Tue Aug  5 10:03:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4186e5ff

x11-terms/gnome-terminal: Fix gtk X/wayland automagic dependency

Closes: https://bugs.gentoo.org/958270
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 x11-terms/gnome-terminal/gnome-terminal-3.56.2.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/x11-terms/gnome-terminal/gnome-terminal-3.56.2.ebuild 
b/x11-terms/gnome-terminal/gnome-terminal-3.56.2.ebuild
index 6682b72bf1f3..d1c19362dc7a 100644
--- a/x11-terms/gnome-terminal/gnome-terminal-3.56.2.ebuild
+++ b/x11-terms/gnome-terminal/gnome-terminal-3.56.2.ebuild
@@ -14,12 +14,12 @@ SLOT="0"
 
 KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
 
-IUSE="debug gnome-shell nautilus"
+IUSE="X debug gnome-shell nautilus wayland"
 
 # FIXME: automagic dependency on gtk+[X], just transitive but needs proper 
control, bug 624960
 RDEPEND="
        >=dev-libs/glib-2.52:2
-       >=x11-libs/gtk+-3.22.27:3
+       >=x11-libs/gtk+-3.22.27:3[X?,wayland?]
        >=gui-libs/libhandy-1.6.0:1
        >=x11-libs/vte-0.80.0:2.91
        >=dev-libs/libpcre2-10
@@ -53,6 +53,9 @@ src_prepare() {
 }
 
 src_configure() {
+       use X || append-cppflags -DGENTOO_GTK_HIDE_X11
+       use wayland || append-cppflags -DGENTOO_GTK_HIDE_WAYLAND
+
        # Upstream don't support LTO & error out on it in meson.build (bug 
#926156)
        filter-lto
 

Reply via email to