13 |
13 |
inherit git-r3
|
14 |
14 |
SLOT="0/9999"
|
15 |
15 |
else
|
16 |
|
SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz"
|
17 |
|
KEYWORDS="amd64 arm64 ~loong ~ppc64 ~riscv x86"
|
|
16 |
SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/releases/${PV}/downloads/${P}.tar.gz -> ${P}.gl.tar.gz"
|
|
17 |
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
18 |
18 |
SLOT="0/$(ver_cut 2)"
|
19 |
19 |
fi
|
20 |
20 |
|
21 |
21 |
LICENSE="MIT"
|
22 |
|
IUSE="+drm +libinput tinywl vulkan x11-backend X"
|
|
22 |
IUSE="+drm +libinput tinywl vulkan x11-backend xcb-errors X"
|
|
23 |
REQUIRED_USE="
|
|
24 |
xcb-errors? ( || ( x11-backend X ) )
|
|
25 |
"
|
23 |
26 |
|
24 |
27 |
DEPEND="
|
25 |
28 |
>=dev-libs/wayland-1.21.0
|
26 |
|
>=dev-libs/wayland-protocols-1.28
|
27 |
|
drm? ( sys-apps/hwdata:= )
|
28 |
|
libinput? ( >=dev-libs/libinput-1.14.0:0= )
|
29 |
29 |
media-libs/mesa[egl(+),gles2]
|
30 |
30 |
sys-auth/seatd:=
|
31 |
31 |
virtual/libudev
|
|
32 |
>=x11-libs/libdrm-2.4.114
|
|
33 |
x11-libs/libxkbcommon
|
|
34 |
>=x11-libs/pixman-0.42.0
|
|
35 |
drm? ( sys-apps/hwdata )
|
|
36 |
libinput? ( >=dev-libs/libinput-1.14.0:= )
|
32 |
37 |
vulkan? (
|
33 |
|
dev-util/glslang:0=
|
34 |
|
dev-util/vulkan-headers:0=
|
35 |
|
media-libs/vulkan-loader:0=
|
|
38 |
dev-util/glslang:=
|
|
39 |
dev-util/vulkan-headers
|
|
40 |
media-libs/vulkan-loader
|
|
41 |
)
|
|
42 |
xcb-errors? ( x11-libs/xcb-util-errors )
|
|
43 |
x11-backend? (
|
|
44 |
x11-libs/libxcb:=
|
|
45 |
x11-libs/xcb-util-renderutil
|
36 |
46 |
)
|
37 |
|
>=x11-libs/libdrm-2.4.114:0=
|
38 |
|
x11-libs/libxkbcommon
|
39 |
|
>=x11-libs/pixman-0.42.0:0=
|
40 |
|
x11-backend? ( x11-libs/libxcb:0= )
|
41 |
47 |
X? (
|
42 |
48 |
x11-base/xwayland
|
43 |
|
x11-libs/libxcb:0=
|
44 |
|
x11-libs/xcb-util-image
|
45 |
|
x11-libs/xcb-util-renderutil
|
|
49 |
x11-libs/libxcb:=
|
46 |
50 |
x11-libs/xcb-util-wm
|
47 |
51 |
)
|
48 |
52 |
"
|
... | ... | |
50 |
54 |
${DEPEND}
|
51 |
55 |
"
|
52 |
56 |
BDEPEND="
|
53 |
|
>=dev-libs/wayland-protocols-1.24
|
54 |
|
>=dev-util/meson-0.60.0
|
|
57 |
>=dev-libs/wayland-protocols-1.28
|
55 |
58 |
dev-util/wayland-scanner
|
56 |
59 |
virtual/pkgconfig
|
57 |
60 |
"
|
... | ... | |
62 |
65 |
$(usev libinput)
|
63 |
66 |
$(usev x11-backend 'x11')
|
64 |
67 |
)
|
65 |
|
# Separate values with a comma with this evil floating point bit hack
|
66 |
68 |
local meson_backends=$(IFS=','; echo "${backends[*]}")
|
67 |
|
# xcb-util-errors is not on Gentoo Repository (and upstream seems inactive?)
|
68 |
69 |
local emesonargs=(
|
69 |
|
"-Dxcb-errors=disabled"
|
|
70 |
$(meson_feature xcb-errors)
|
70 |
71 |
$(meson_use tinywl examples)
|
71 |
72 |
-Drenderers=$(usex vulkan 'gles2,vulkan' gles2)
|
72 |
73 |
$(meson_feature X xwayland)
|
... | ... | |
78 |
79 |
|
79 |
80 |
src_install() {
|
80 |
81 |
meson_src_install
|
|
82 |
dodoc docs/*
|
81 |
83 |
|
82 |
84 |
if use tinywl; then
|
83 |
85 |
dobin "${BUILD_DIR}"/tinywl/tinywl
|