app-text/evince: enforce binary dependency on wayland/x11 backends

```
QA Notice: binaries depend on Gtk's wayland-specific ABI without USE dep:

  /usr/lib64/libevview3.so.3.0.0

QA Notice: binaries depend on Gtk's x11-specific ABI without USE dep:

  /usr/bin/evince
  /usr/lib64/libevview3.so.3.0.0
```

Closes: https://bugs.gentoo.org/959663
Closes: https://bugs.gentoo.org/959667
Signed-off-by: Lukas Schmelting <lschmelting@posteo.com>
Part-of: https://github.com/gentoo/gentoo/pull/43235
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Lukas Schmelting
2025-07-30 23:30:52 +02:00
committed by Sam James
parent bd0d8d6f77
commit 9e8f9793bf

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 wayland xps"
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