Skip to content

Commit

Permalink
gnome-extra/cinnamon-settings-daemon: avoid automagic deps on gtk+[X,…
Browse files Browse the repository at this point in the history
…wayland]

Currently, one is forced to compile c-s-d and gtk with the same value of
USE=wayland which makes it difficult to provide generically reusable
binaries. It is better than automagically depending on wayland and then
lacking it, but not ideal. Preferable would be for c-s-d[wayland] to
require gtk+[wayland] but when built without wayland support, to not
care whether gtk itself is.

We now support a mechanism for packages to opt out of gtk providing the
API, for use by packages that don't provide a `-D wayland=true` but
autodetect whether gtk was built with it. Use that mechanism.

Signed-off-by: Eli Schwartz <[email protected]>
  • Loading branch information
eli-schwartz committed Aug 23, 2024
1 parent 055fbf9 commit 709ff5b
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ EAPI=8

PYTHON_COMPAT=( python3_{10..13} )

inherit meson gnome2-utils python-any-r1 xdg
inherit meson flag-o-matic gnome2-utils python-any-r1 xdg

DESCRIPTION="Cinnamon's settings daemon"
HOMEPAGE="https://projects.linuxmint.com/cinnamon/ https://github.com/linuxmint/cinnamon-settings-daemon"
Expand Down Expand Up @@ -43,7 +43,7 @@ RDEPEND="
app-admin/system-config-printer
net-print/cups-pk-helper )
input_devices_wacom? (
>=x11-libs/gtk+-3.14.0:3[wayland=]
>=x11-libs/gtk+-3.24.41-r1:3[wayland?,X]
>=dev-libs/libwacom-0.7:=
>=gnome-base/librsvg-2.36.2
)
Expand Down Expand Up @@ -75,6 +75,12 @@ src_prepare() {
}

src_configure() {
# The only component that uses gdk backends is the wacom plugin
if use input_devices_wacom; then
# defang automagic dependencies
use wayland || append-cflags -DGENTOO_GTK_HIDE_WAYLAND
fi

# gudev not optional on Linux platforms
local emesonargs=(
-Duse_gudev=enabled
Expand Down

0 comments on commit 709ff5b

Please sign in to comment.