| 13 |
13 |
inherit git-r3
|
| 14 |
14 |
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/mutter.git"
|
| 15 |
15 |
SRC_URI=""
|
| 16 |
|
SLOT="0/16" # This can get easily out of date, but better than 9967
|
|
16 |
SLOT="0/17" # This can get easily out of date, but better than 9967
|
| 17 |
17 |
else
|
| 18 |
|
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
|
18 |
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
| 19 |
19 |
SLOT="0/$(($(ver_cut 1) - 32))" # 0/libmutter_api_version - ONLY gnome-shell (or anything using mutter-clutter-<api_version>.pc) should use the subslot
|
| 20 |
20 |
fi
|
| 21 |
21 |
|
| 22 |
|
IUSE="bash-completion debug elogind gnome gtk-doc input_devices_wacom +introspection screencast sysprof systemd test udev wayland X +xwayland video_cards_nvidia"
|
|
22 |
IUSE="bash-completion debug devkit elogind gnome gtk-doc input_devices_wacom +introspection screencast sysprof systemd test udev +wayland X +xwayland video_cards_nvidia"
|
| 23 |
23 |
# native backend requires gles3 for hybrid graphics blitting support, udev and a logind provider
|
| 24 |
24 |
REQUIRED_USE="
|
| 25 |
25 |
|| ( X wayland )
|
|
26 |
devkit? ( screencast wayland )
|
| 26 |
27 |
gtk-doc? ( introspection )
|
| 27 |
28 |
wayland? ( ^^ ( elogind systemd ) udev )
|
| 28 |
|
test? ( screencast wayland )"
|
|
29 |
test? ( screencast wayland )
|
|
30 |
xwayland? ( wayland )"
|
| 29 |
31 |
RESTRICT="!test? ( test )"
|
| 30 |
32 |
|
| 31 |
33 |
# gnome-settings-daemon is build checked, but used at runtime only for org.gnome.settings-daemon.peripherals.keyboard gschema
|
| ... | ... | |
| 38 |
40 |
# dev-libs/wayland is always needed at build time due to https://bugs.gentoo.org/937632
|
| 39 |
41 |
RDEPEND="
|
| 40 |
42 |
>=media-libs/graphene-1.10.2[introspection?]
|
| 41 |
|
x11-libs/gdk-pixbuf:2
|
| 42 |
43 |
>=x11-libs/pango-1.46[introspection?]
|
| 43 |
44 |
>=x11-libs/cairo-1.14[X]
|
| 44 |
45 |
>=x11-libs/pixman-0.42
|
|
46 |
>=gui-libs/gtk-4.14.0:4[introspection?]
|
| 45 |
47 |
>=dev-libs/fribidi-1.0.0
|
| 46 |
48 |
>=gnome-base/gsettings-desktop-schemas-47_beta[introspection?]
|
| 47 |
49 |
>=dev-libs/glib-2.81.1:2
|
| ... | ... | |
| 54 |
56 |
>=media-libs/harfbuzz-2.6.0:=
|
| 55 |
57 |
>=dev-libs/libei-1.3.901
|
| 56 |
58 |
>=media-libs/libdisplay-info-0.2:=
|
|
59 |
>=media-libs/glycin-2.0_beta_p2:=
|
| 57 |
60 |
|
|
61 |
devkit? (
|
|
62 |
gui-libs/libadwaita
|
|
63 |
)
|
| 58 |
64 |
gnome? ( gnome-base/gnome-desktop:4= )
|
| 59 |
65 |
|
| 60 |
66 |
>=media-libs/libcanberra-0.26
|
| 61 |
67 |
|
| 62 |
68 |
media-libs/libglvnd
|
| 63 |
69 |
|
| 64 |
|
>=dev-libs/wayland-1.23.0
|
|
70 |
>=dev-libs/wayland-1.24.0
|
| 65 |
71 |
wayland? (
|
| 66 |
|
>=dev-libs/wayland-protocols-1.41
|
|
72 |
>=dev-libs/wayland-protocols-1.45
|
| 67 |
73 |
|
| 68 |
74 |
>=x11-libs/libdrm-2.4.118
|
| 69 |
75 |
media-libs/mesa[gbm(+)]
|
| ... | ... | |
| 79 |
85 |
)
|
| 80 |
86 |
systemd? ( sys-apps/systemd )
|
| 81 |
87 |
input_devices_wacom? ( >=dev-libs/libwacom-0.13:= )
|
| 82 |
|
screencast? ( >=media-video/pipewire-1.2.0:= )
|
|
88 |
screencast? ( >=media-video/pipewire-1.2.7:= )
|
| 83 |
89 |
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
|
| 84 |
90 |
test? (
|
| 85 |
91 |
>=x11-libs/gtk+-3.19.8:3[X,introspection?]
|
|
92 |
>=dev-util/umockdev-0.3.0
|
| 86 |
93 |
)
|
| 87 |
94 |
sysprof? ( >=dev-util/sysprof-capture-3.40.1:4 >=dev-util/sysprof-3.46.0 )
|
| 88 |
95 |
"
|
| 89 |
96 |
|
| 90 |
97 |
X11_CLIENT_DEPS="
|
| 91 |
|
>=gui-libs/gtk-4.0.0:4[X,introspection?]
|
|
98 |
>=gui-libs/gtk-4.14.0:4[X,introspection?]
|
| 92 |
99 |
media-libs/libglvnd[X]
|
| 93 |
100 |
>=x11-libs/libX11-1.7.0
|
| 94 |
101 |
>=x11-libs/libXcomposite-0.4
|
| ... | ... | |
| 108 |
115 |
RDEPEND+="
|
| 109 |
116 |
X? (
|
| 110 |
117 |
${X11_CLIENT_DEPS}
|
| 111 |
|
x11-libs/libICE
|
| 112 |
118 |
x11-libs/libxkbfile
|
| 113 |
119 |
x11-libs/libXtst
|
| 114 |
|
x11-libs/libSM
|
| 115 |
120 |
)
|
| 116 |
121 |
wayland? ( xwayland? ( ${X11_CLIENT_DEPS} ) )
|
| 117 |
122 |
"
|
| ... | ... | |
| 120 |
125 |
sysprof? ( >=dev-util/sysprof-common-3.38.0 )
|
| 121 |
126 |
"
|
| 122 |
127 |
BDEPEND="
|
|
128 |
>=dev-build/meson-1.5.0
|
| 123 |
129 |
dev-util/wayland-scanner
|
| 124 |
|
>=dev-util/gdbus-codegen-2.80.5-r1
|
|
130 |
dev-util/gdbus-codegen
|
| 125 |
131 |
dev-util/glib-utils
|
|
132 |
dev-python/docutils
|
| 126 |
133 |
>=sys-devel/gettext-0.19.8
|
| 127 |
134 |
virtual/pkgconfig
|
| 128 |
135 |
gtk-doc? ( >=dev-util/gi-docgen-2021.1 )
|
| ... | ... | |
| 150 |
157 |
)
|
| 151 |
158 |
"
|
| 152 |
159 |
|
| 153 |
|
PATCHES=(
|
| 154 |
|
"${FILESDIR}"/${PN}-43.0-Disable-anonymous-file-test.patch
|
| 155 |
|
"${FILESDIR}"/"${PN}"-48.6-trap-X-errors.patch
|
| 156 |
|
)
|
| 157 |
|
|
| 158 |
160 |
python_check_deps() {
|
| 159 |
161 |
if use test; then
|
| 160 |
|
python_has_version ">=dev-python/python-dbusmock-0.28[${PYTHON_USEDEP}]" || return 1
|
|
162 |
python_has_version ">=dev-python/python-dbusmock-0.28[${PYTHON_USEDEP}]"
|
| 161 |
163 |
fi
|
| 162 |
164 |
if use bash-completion; then
|
| 163 |
|
python_has_version "dev-python/argcomplete[${PYTHON_USEDEP}]" || return 1
|
|
165 |
python_has_version dev-python/argcomplete[${PYTHON_USEDEP}]
|
| 164 |
166 |
fi
|
| 165 |
167 |
}
|
| 166 |
168 |
|
| ... | ... | |
| 214 |
216 |
$(meson_use input_devices_wacom libwacom)
|
| 215 |
217 |
-Dsound_player=true
|
| 216 |
218 |
-Dstartup_notification=true
|
| 217 |
|
$(meson_use X sm)
|
| 218 |
219 |
$(meson_use introspection)
|
|
220 |
$(meson_feature devkit)
|
| 219 |
221 |
$(meson_use gtk-doc docs)
|
| 220 |
222 |
$(meson_use test cogl_tests)
|
| 221 |
223 |
$(meson_use test clutter_tests)
|