commit: 9bb2e372bb3f8b0be5789f816f394fe6c81a7320 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> AuthorDate: Sun Mar 13 18:36:19 2022 +0000 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> CommitDate: Sun Mar 13 18:36:36 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bb2e372
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 <AT> gentoo.org> sys-power/switcheroo-control/switcheroo-control-2.4.ebuild | 9 ++++++--- 1 file 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)
