| 16 |
16 |
SLOT="0/17" # This can get easily out of date, but better than 9967
|
| 17 |
17 |
else
|
| 18 |
18 |
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
| 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
|
|
19 |
# 0/libmutter_api_version - ONLY gnome-shell or anything using mutter-clutter-<api_version>.pc
|
|
20 |
# should use the subslot
|
|
21 |
SLOT="0/$(($(ver_cut 1) - 32))"
|
| 20 |
22 |
fi
|
| 21 |
23 |
|
| 22 |
|
IUSE="bash-completion debug devkit elogind gnome gtk-doc input_devices_wacom +introspection screencast selinux sysprof systemd test udev +wayland X +xwayland video_cards_nvidia"
|
|
24 |
IUSE="bash-completion debug devkit elogind gnome gtk-doc input_devices_wacom +introspection
|
|
25 |
screencast selinux sysprof systemd test udev +wayland X +xwayland video_cards_nvidia"
|
|
26 |
|
| 23 |
27 |
# native backend requires gles3 for hybrid graphics blitting support, udev and a logind provider
|
| 24 |
28 |
REQUIRED_USE="
|
| 25 |
29 |
|| ( X wayland )
|
| ... | ... | |
| 30 |
34 |
xwayland? ( wayland )"
|
| 31 |
35 |
RESTRICT="!test? ( test )"
|
| 32 |
36 |
|
| 33 |
|
# gnome-settings-daemon is build checked, but used at runtime only for org.gnome.settings-daemon.peripherals.keyboard gschema
|
| 34 |
|
# USE=libei was first introduced in xwayland-23.2.1; we min dep on that to ensure the [libei(+)] works right, as missing USE flag with
|
| 35 |
|
# previous versions meant that it's not there, while the intention seems to be to make it always enabled without USE flag in the future;
|
| 36 |
|
# this ensures have_enable_ei_portal is always there in xwayland.pc, which affects how Xwayland is launched, thus if it were toggled off
|
| 37 |
|
# in Xwayland after mutter is installed, Xwayland would fail to be started by mutter. mutter already hard-depends on libei, so there's
|
| 38 |
|
# really no extra deps here (besides xdg-desktop-portal, but we want that too, anyhow).
|
| 39 |
|
# v3.32.2 has many excessive or unused *_req variables declared, thus currently the dep order ignores those and goes via dependency() call order
|
|
37 |
# gnome-settings-daemon is build checked but used at runtime only for org.gnome.settings-daemon.peripherals.keyboard
|
|
38 |
# gschema
|
|
39 |
# USE=libei was first introduced in xwayland-23.2.1; we min dep on that to ensure the [libei(+)] works right, as
|
|
40 |
# missing USE flag with previous versions meant that it's not there, while the intention seems to be to make it always
|
|
41 |
# enabled without USE flag in the future; this ensures have_enable_ei_portal is always there in xwayland.pc, which
|
|
42 |
# affects how Xwayland is launched, thus if it were toggled off in Xwayland after mutter is installed, Xwayland would
|
|
43 |
# fail to be started by mutter. mutter already hard-depends on libei, so there's really no extra deps here (besides
|
|
44 |
# xdg-desktop-portal, but we want that too, anyhow).
|
| 40 |
45 |
# dev-libs/wayland is always needed at build time due to https://bugs.gentoo.org/937632
|
| 41 |
46 |
RDEPEND="
|
| 42 |
47 |
>=media-libs/graphene-1.10.2[introspection?]
|
| ... | ... | |
| 158 |
163 |
)
|
| 159 |
164 |
"
|
| 160 |
165 |
|
| 161 |
|
PATCHES=(
|
| 162 |
|
"${FILESDIR}"/${P}-update-kms-resource-lists.patch
|
| 163 |
|
)
|
| 164 |
|
|
| 165 |
166 |
python_check_deps() {
|
| 166 |
167 |
if use test; then
|
| 167 |
168 |
python_has_version ">=dev-python/python-dbusmock-0.28[${PYTHON_USEDEP}]"
|
| ... | ... | |
| 237 |
238 |
|
| 238 |
239 |
#verbose # Let upstream choose default for verbose mode
|
| 239 |
240 |
#xwayland_path
|
| 240 |
|
# TODO: relies on default settings, but in Gentoo we might have some more packages we want to give Xgrab access (mostly virtual managers and remote desktops)
|
|
241 |
# TODO: relies on default settings, but in Gentoo we might have some more packages we want to give
|
|
242 |
# Xgrab access (mostly virtual managers and remote desktops)
|
| 241 |
243 |
#xwayland_grab_default_access_rules
|
| 242 |
244 |
)
|
| 243 |
245 |
|
| ... | ... | |
| 257 |
259 |
}
|
| 258 |
260 |
|
| 259 |
261 |
src_test() {
|
| 260 |
|
# Reset variables to avoid issues from /etc/profile.d/flatpak.sh file
|
|
262 |
# Needed to prevent some tests failures
|
| 261 |
263 |
gnome2_environment_reset
|
| 262 |
264 |
export XDG_DATA_DIRS="${EPREFIX}"/usr/share
|
| 263 |
265 |
glib-compile-schemas "${BUILD_DIR}"/data
|