kde-frameworks/breeze-icons: Add missing !test handling
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 11 Nov 2019 07:19:35 +0000 (08:19 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 11 Nov 2019 07:32:51 +0000 (08:32 +0100)
We don't inherit ecm.eclass so we need to do a bit extra.

Closes: https://bugs.gentoo.org/699792
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
kde-frameworks/breeze-icons/breeze-icons-5.64.0.ebuild

index 6d7d4db370aa07b5d6caedcd7d469fa0fd67677a..4a6392d4b772de34445c171aae48a3d0572e3c0d 100644 (file)
@@ -19,6 +19,11 @@ DEPEND="test? ( dev-qt/qttest:5 )"
 
 RESTRICT+=" !test? ( test )"
 
+src_prepare() {
+       cmake-utils_src_prepare
+       use test || cmake_comment_add_subdirectory autotests
+}
+
 src_configure() {
        local mycmakeargs=(
                -DBINARY_ICONS_RESOURCE=OFF