commit: 5e22916fd3616ee47b16b06e67555ef2b6b5bd8b
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 4 18:52:29 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Nov 13 17:18:50 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e22916f
kde5.eclass: introduce forceoptional value for KDE_TEST
eclass/kde5.eclass | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 7a5d222..0f50623 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -93,6 +93,8 @@ fi
# @DESCRIPTION:
# If set to "false", do nothing.
# For any other value, add test to IUSE and add a dependency on
dev-qt/qttest:5.
+# If set to "forceoptional", remove a Qt5Test dependency from the root
+# CMakeLists.txt in addition to the above.
if [[ ${CATEGORY} = kde-frameworks ]]; then
: ${KDE_TEST:=true}
else
@@ -466,6 +468,12 @@ kde5_src_prepare() {
fi
fi
+ if [[ ${KDE_TEST} = forceoptional ]] ; then
+ if ! use_if_iuse test ; then
+ punt_bogus_dep Qt5 Test
+ fi
+ fi
+
cmake-utils_src_prepare
}