From 4350d1484c0ab46f8f74f973438e47ec24e2c01b Mon Sep 17 00:00:00 2001
From: Matt Turner <mattst88@gentoo.org>
Date: Fri, 24 Mar 2023 22:19:44 -0400
Subject: x11-libs/cairo: Disable building tests

Even though tests are restricted, it's still possible to set USE=test
and then configure will fail with missing dependencies.

Closes: https://bugs.gentoo.org/902775
Signed-off-by: Matt Turner <mattst88@gentoo.org>
---
 x11-libs/cairo/cairo-1.17.8.ebuild | 6 +++---
 x11-libs/cairo/cairo-9999.ebuild   | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

(limited to 'x11-libs')

diff --git a/x11-libs/cairo/cairo-1.17.8.ebuild b/x11-libs/cairo/cairo-1.17.8.ebuild
index a27acb5ec771..c32c5a8d50e5 100644
--- a/x11-libs/cairo/cairo-1.17.8.ebuild
+++ b/x11-libs/cairo/cairo-1.17.8.ebuild
@@ -18,8 +18,8 @@ DESCRIPTION="A vector graphics library with cross-device output support"
 HOMEPAGE="https://www.cairographics.org/ https://gitlab.freedesktop.org/cairo/cairo"
 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
 SLOT="0"
-IUSE="X aqua debug +glib gtk-doc test"
-RESTRICT="!test? ( test ) test" # Requires poppler-glib, which isn't available in multilib
+IUSE="X aqua debug +glib gtk-doc"
+RESTRICT="test" # Test suite has many failures. Requires poppler-glib, which isn't available in multilib
 
 RDEPEND="
 	>=dev-libs/lzo-2.06-r1:2[${MULTILIB_USEDEP}]
@@ -61,7 +61,7 @@ multilib_src_configure() {
 		-Dxml=disabled
 		-Dzlib=enabled
 
-		$(meson_feature test tests)
+		-Dtests=disabled
 
 		-Dgtk2-utils=disabled
 
diff --git a/x11-libs/cairo/cairo-9999.ebuild b/x11-libs/cairo/cairo-9999.ebuild
index 8057aa2f9d64..5ead761e1e7f 100644
--- a/x11-libs/cairo/cairo-9999.ebuild
+++ b/x11-libs/cairo/cairo-9999.ebuild
@@ -18,8 +18,8 @@ DESCRIPTION="A vector graphics library with cross-device output support"
 HOMEPAGE="https://www.cairographics.org/ https://gitlab.freedesktop.org/cairo/cairo"
 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
 SLOT="0"
-IUSE="X aqua debug +glib gtk-doc test"
-RESTRICT="!test? ( test ) test" # Requires poppler-glib, which isn't available in multilib
+IUSE="X aqua debug +glib gtk-doc"
+RESTRICT="test" # Test suite has many failures. Requires poppler-glib, which isn't available in multilib
 
 RDEPEND="
 	>=dev-libs/lzo-2.06-r1:2[${MULTILIB_USEDEP}]
@@ -56,7 +56,7 @@ multilib_src_configure() {
 		-Dxlib-xcb=disabled
 		-Dzlib=enabled
 
-		$(meson_feature test tests)
+		-Dtests=disabled
 
 		-Dgtk2-utils=disabled
 
-- 
cgit v1.2.3-65-gdbad