commit: a049ae60bc0adb1ca361af8f801e4b59e0a5f0e6 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> AuthorDate: Thu May 16 13:39:27 2024 +0000 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> CommitDate: Thu May 16 14:16:02 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a049ae60
x11-base/xwayland: Add test dependencies Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> x11-base/xwayland/xwayland-9999.ebuild | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/x11-base/xwayland/xwayland-9999.ebuild b/x11-base/xwayland/xwayland-9999.ebuild index 9838b99ca7c6..30d4b9f53746 100644 --- a/x11-base/xwayland/xwayland-9999.ebuild +++ b/x11-base/xwayland/xwayland-9999.ebuild @@ -19,7 +19,8 @@ HOMEPAGE="https://wayland.freedesktop.org/xserver.html" LICENSE="MIT" SLOT="0" -IUSE="libei selinux systemd unwind xcsecurity" +IUSE="libei selinux systemd test unwind xcsecurity" +RESTRICT="!test? ( test )" COMMON_DEPEND=" dev-libs/libbsd @@ -48,6 +49,10 @@ DEPEND=" ${COMMON_DEPEND} >=x11-base/xorg-proto-2024.1 >=x11-libs/xtrans-1.3.5 + test? ( + x11-misc/rendercheck + x11-libs/libX11 + ) " RDEPEND=" ${COMMON_DEPEND} @@ -65,6 +70,14 @@ PATCHES=( "${FILESDIR}"/xwayland-drop-redundantly-installed-files_v2.patch ) +src_prepare() { + default + + if ! use test; then + sed -i -e "s/dependency('x11')/disabler()/" meson.build || die + fi +} + src_configure() { local emesonargs=( $(meson_use selinux xselinux)