commit:     9663994aac4cd2ba07cd727405740b5739f91cc3
Author:     Mazunki Hoksaas <rolferen <AT> gmail <DOT> com>
AuthorDate: Sat Apr 12 16:47:26 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Apr 12 16:47:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9663994a

app-misc/qman: make tests conditional on USE=test

Bug: https://bugs.gentoo.org/953507
Signed-off-by: Mazunki Hoksaas <rolferen <AT> gmail.com>

 app-misc/qman/qman-9999.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/app-misc/qman/qman-9999.ebuild b/app-misc/qman/qman-9999.ebuild
index c5a214d56..6a8f3f51a 100644
--- a/app-misc/qman/qman-9999.ebuild
+++ b/app-misc/qman/qman-9999.ebuild
@@ -13,7 +13,8 @@ EGIT_BRANCH="devel"
 LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="+doc"
+IUSE="+doc test"
+RESTRICT="!test? ( test )"
 
 DEPEND="
        sys-libs/ncurses:=
@@ -22,13 +23,16 @@ DEPEND="
 "
 BDEPEND="
        dev-python/cogapp
-       dev-util/cunit
+       test? (
+               dev-util/cunit
+       )
 "
 RDEPEND="${DEPEND}"
 
 src_configure() {
        local emesonargs=(
                $(meson_feature doc docs)
+               $(meson_feature test tests)
                -Ddocdir="/usr/share/doc/${PF}"
        )
        meson_src_configure

Reply via email to