summaryrefslogtreecommitdiff
path: root/gui-wm/sommelier/sommelier-9999.ebuild
blob: 46aed0bdf3f0791eb999825cafa92498141aaf82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{11,12,13} )

inherit meson python-any-r1 git-r3

DESCRIPTION="Nested Wayland compositor with support for X11 forwarding"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/refs/heads/main/vm_tools/sommelier/"

EGIT_REPO_URI="https://github.com/akvadrako/sommelier"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

BDEPEND="
	dev-util/wayland-scanner
	$(python_gen_any_dep '
		dev-python/jinja2[${PYTHON_USEDEP}]
	')
"

DEPEND="
	media-libs/mesa
	x11-libs/libdrm
	x11-libs/pixman
	x11-libs/libxcb
	x11-libs/libxkbcommon
	dev-libs/wayland
"

RDEPEND="
	${DEPEND}
	x11-base/xwayland
"

python_check_deps() {
	python_has_version "dev-python/jinja2[${PYTHON_USEDEP}]"
}

src_configure() {
	local emesonargs=(
		-Dxwayland_path="${BROOT}"/usr/bin/Xwayland
		-Dxwayland_gl_driver_path="${EPREFIX}/usr/$(get_libdir)/dri"
	)
	meson_src_configure
}