Diff wlroots-0.16.2 with a wlroots-0.16.2-r1

/usr/portage/gui-libs/wlroots/wlroots-0.16.2-r1.ebuild 2023-10-09 14:52:31.176368393 +0300
19 19
fi
20 20

  
21 21
LICENSE="MIT"
22
IUSE="tinywl vulkan x11-backend X"
22
IUSE="+drm +libinput tinywl vulkan x11-backend X"
23 23

  
24 24
DEPEND="
25
	>=dev-libs/libinput-1.14.0:0=
26 25
	>=dev-libs/wayland-1.21.0
27 26
	>=dev-libs/wayland-protocols-1.28
27
	drm? ( sys-apps/hwdata:= )
28
	libinput? ( >=dev-libs/libinput-1.14.0:0= )
28 29
	media-libs/mesa[egl(+),gles2]
29
	sys-apps/hwdata:=
30 30
	sys-auth/seatd:=
31 31
	virtual/libudev
32 32
	vulkan? (
......
57 57
"
58 58

  
59 59
src_configure() {
60
	local backends=(
61
		$(usev drm)
62
		$(usev libinput)
63
		$(usev x11-backend 'x11')
64
	)
65
	# Separate values with a comma with this evil floating point bit hack
66
	local meson_backends=$(IFS=','; echo "${backends[*]}")
60 67
	# xcb-util-errors is not on Gentoo Repository (and upstream seems inactive?)
61 68
	local emesonargs=(
62 69
		"-Dxcb-errors=disabled"
63 70
		$(meson_use tinywl examples)
64 71
		-Drenderers=$(usex vulkan 'gles2,vulkan' gles2)
65
		-Dxwayland=$(usex X enabled disabled)
66
		-Dbackends=drm,libinput$(usex x11-backend ',x11' '')
72
		$(meson_feature X xwayland)
73
		-Dbackends=${meson_backends}
67 74
	)
68 75

  
69 76
	meson_src_configure
Thank you!