commit:     f21fdf41091eb03a10dce8e7491b6f7a78196a49
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 24 17:56:39 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Aug 25 14:44:47 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=f21fdf41

kde4-base.eclass: Fix MissingTestRestrict if CPPUNIT_REQUIRED=optional

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/kde4-base.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index d8e922ec..92e8164e 100644
--- a/eclass/kde4-base.eclass
+++ b/eclass/kde4-base.eclass
@@ -339,6 +339,7 @@ case ${CPPUNIT_REQUIRED} in
        optional)
                IUSE+=" test"
                DEPEND+=" test? ( ${cppuintdepend} )"
+               RESTRICT+=" !test? ( test )"
                ;;
        *) ;;
 esac

Reply via email to