summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2022-03-13 19:36:19 +0100
committerPacho Ramos <pacho@gentoo.org>2022-03-13 19:36:36 +0100
commit9bb2e372bb3f8b0be5789f816f394fe6c81a7320 (patch)
treed1a68117cfe2e66ceca09f1a5dcc3d1c1d734586 /sys-power/switcheroo-control
parentsci-chemistry/dssp: Bump to 4.0.4 (diff)
downloadgentoo-9bb2e372bb3f8b0be5789f816f394fe6c81a7320.tar.gz
gentoo-9bb2e372bb3f8b0be5789f816f394fe6c81a7320.tar.bz2
gentoo-9bb2e372bb3f8b0be5789f816f394fe6c81a7320.zip
sys-power/switcheroo-control: Fix tests
Closes: https://bugs.gentoo.org/834882 Thanks-to: Toralf Förster Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'sys-power/switcheroo-control')
-rw-r--r--sys-power/switcheroo-control/switcheroo-control-2.4.ebuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys-power/switcheroo-control/switcheroo-control-2.4.ebuild b/sys-power/switcheroo-control/switcheroo-control-2.4.ebuild
index 8916604271ba..edf3b3edbb4b 100644
--- a/sys-power/switcheroo-control/switcheroo-control-2.4.ebuild
+++ b/sys-power/switcheroo-control/switcheroo-control-2.4.ebuild
@@ -1,7 +1,7 @@
-# Copyright 2021 Gentoo Authors
+# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit meson
DESCRIPTION="D-Bus service to check the availability of dual-GPU"
@@ -10,7 +10,7 @@ SRC_URI="https://gitlab.freedesktop.org/hadess/switcheroo-control/uploads/accd4a
LICENSE="GPL-3"
SLOT="0"
-IUSE="gtk-doc"
+IUSE="gtk-doc test"
KEYWORDS="amd64"
@@ -22,8 +22,11 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="
gtk-doc? ( dev-util/gtk-doc )
+ test? ( dev-util/umockdev )
"
+RESTRICT="!test? ( test )"
+
src_configure() {
local emesonargs=(
$(meson_use gtk-doc gtk_doc)