From b013435880cacc41af5199bce99d30ae3e1f9b28 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 10 May 2023 12:15:15 +0100 Subject: gui-libs/wf-config: fix automagic tests Signed-off-by: Sam James --- gui-libs/wf-config/wf-config-0.7.1-r1.ebuild | 13 ++++++++++++- gui-libs/wf-config/wf-config-9999.ebuild | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/gui-libs/wf-config/wf-config-0.7.1-r1.ebuild b/gui-libs/wf-config/wf-config-0.7.1-r1.ebuild index c663a20684e4..a223d4b9907c 100644 --- a/gui-libs/wf-config/wf-config-0.7.1-r1.ebuild +++ b/gui-libs/wf-config/wf-config-0.7.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019-2021 Gentoo Authors +# Copyright 2019-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -18,6 +18,8 @@ fi LICENSE="MIT" SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" DEPEND=" dev-libs/libevdev @@ -28,4 +30,13 @@ RDEPEND="${DEPEND}" BDEPEND=" dev-libs/wayland-protocols virtual/pkgconfig + test? ( dev-cpp/doctest ) " + +src_configure() { + local emesonargs=( + $(meson_feature test tests) + ) + + meson_src_configure +} diff --git a/gui-libs/wf-config/wf-config-9999.ebuild b/gui-libs/wf-config/wf-config-9999.ebuild index 7ceb2c95adb3..ae9b12db688b 100644 --- a/gui-libs/wf-config/wf-config-9999.ebuild +++ b/gui-libs/wf-config/wf-config-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019-2021 Gentoo Authors +# Copyright 2019-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -18,6 +18,8 @@ fi LICENSE="MIT" SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" DEPEND=" dev-libs/libevdev @@ -28,4 +30,13 @@ RDEPEND="${DEPEND}" BDEPEND=" dev-libs/wayland-protocols virtual/pkgconfig + test? ( dev-cpp/doctest ) " + +src_configure() { + local emesonargs=( + $(meson_feature test tests) + ) + + meson_src_configure +} -- cgit v1.2.3-65-gdbad