commit: b013435880cacc41af5199bce99d30ae3e1f9b28
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 10 11:15:15 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 10 11:29:41 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0134358
gui-libs/wf-config: fix automagic tests
Signed-off-by: Sam James <sam <AT> gentoo.org>
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
+}