From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1631713-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 521D81581D3
	for <garchives@archives.gentoo.org>; Thu, 16 May 2024 14:16:13 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7E487E2A4E;
	Thu, 16 May 2024 14:16:11 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 53C87E2A3F
	for <gentoo-commits@lists.gentoo.org>; Thu, 16 May 2024 14:16:11 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 4DD2E340906
	for <gentoo-commits@lists.gentoo.org>; Thu, 16 May 2024 14:16:10 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C0D31ACE
	for <gentoo-commits@lists.gentoo.org>; Thu, 16 May 2024 14:16:08 +0000 (UTC)
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" <mattst88@gentoo.org>
Message-ID: <1715868962.a049ae60bc0adb1ca361af8f801e4b59e0a5f0e6.mattst88@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-base/xwayland/
X-VCS-Repository: repo/gentoo
X-VCS-Files: x11-base/xwayland/xwayland-9999.ebuild
X-VCS-Directories: x11-base/xwayland/
X-VCS-Committer: mattst88
X-VCS-Committer-Name: Matt Turner
X-VCS-Revision: a049ae60bc0adb1ca361af8f801e4b59e0a5f0e6
X-VCS-Branch: master
Date: Thu, 16 May 2024 14:16:08 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: ec6c66c9-4a55-435d-abbe-77138f6db457
X-Archives-Hash: deb2b5c7194193c2feccca273b30f289

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)