app-text/evince: Fix automagic depend on gtk wayland/X support

Closes: https://bugs.gentoo.org/959667
Closes: https://bugs.gentoo.org/959663
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
Pacho Ramos
2025-07-16 15:55:50 +02:00
parent 4354fc7255
commit 67f1ebe3a4

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit gnome.org gnome2-utils meson systemd xdg
inherit flag-o-matic gnome.org gnome2-utils meson systemd xdg
DESCRIPTION="Simple document viewer for GNOME"
HOMEPAGE="https://apps.gnome.org/Evince/"
@@ -12,7 +12,7 @@ LICENSE="GPL-2+ CC-BY-SA-3.0"
# subslot = evd3.(suffix of libevdocument3)-evv3.(suffix of libevview3)
SLOT="0/evd3.4-evv3.3"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
IUSE="cups djvu dvi gstreamer gnome keyring gtk-doc +introspection postscript spell tiff xps"
IUSE="X cups djvu dvi gstreamer gnome keyring gtk-doc +introspection postscript spell tiff xps wayland"
REQUIRED_USE="gtk-doc? ( introspection )"
# atk used in libview
@@ -24,7 +24,7 @@ DEPEND="
>=dev-libs/libxml2-2.5:2=
sys-libs/zlib:=
>=x11-libs/gdk-pixbuf-2.40:2
>=x11-libs/gtk+-3.22.0:3[cups?,introspection?]
>=x11-libs/gtk+-3.22.0:3[X?,cups?,introspection?,wayland?]
gnome-base/gsettings-desktop-schemas
>=x11-libs/cairo-1.10
>=app-text/poppler-22.05.0:=[cairo]
@@ -69,6 +69,9 @@ src_prepare() {
}
src_configure() {
use X || append-cppflags -DGENTOO_GTK_HIDE_X11
use wayland || append-cppflags -DGENTOO_GTK_HIDE_WAYLAND
local emesonargs=(
-Ddevelopment=false
-Dplatform=gnome