commit:     558ae7a666bfbca1f46d896247848127cb3e6aef
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  5 09:49:44 2025 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Tue Aug  5 10:03:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=558ae7a6

x11-terms/ptyxis: Fix gtk X/wayland magic dependency.

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

 x11-terms/ptyxis/ptyxis-48.5.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/x11-terms/ptyxis/ptyxis-48.5.ebuild 
b/x11-terms/ptyxis/ptyxis-48.5.ebuild
index bc5d9e7085d8..f631123522d3 100644
--- a/x11-terms/ptyxis/ptyxis-48.5.ebuild
+++ b/x11-terms/ptyxis/ptyxis-48.5.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit gnome.org gnome2-utils meson xdg
+inherit flag-o-matic gnome.org gnome2-utils meson xdg
 
 DESCRIPTION="A terminal for a container-oriented desktop"
 HOMEPAGE="https://gitlab.gnome.org/chergert/ptyxis";
@@ -11,12 +11,12 @@ HOMEPAGE="https://gitlab.gnome.org/chergert/ptyxis";
 LICENSE="LGPL-3+"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="test"
+IUSE="X test"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
        >=dev-libs/glib-2.80:2
-       >=gui-libs/gtk-4.12.2:4
+       >=gui-libs/gtk-4.12.2:4[X?]
        >=gui-libs/libadwaita-1.6:1
        >=gui-libs/vte-0.79:2.91-gtk4
        dev-libs/libportal[gtk]
@@ -36,6 +36,7 @@ BDEPEND="
 "
 
 src_configure() {
+       use X || append-cflags -DGENTOO_GTK_HIDE_X11
        local emesonargs=(
                -Ddevelopment=false
                -Dgeneric=terminal

Reply via email to