kde5.eclass: introduce forceoptional value for KDE_TEST

This commit is contained in:
Michael Palimaka
2015-11-05 05:52:29 +11:00
parent 03484f8df1
commit 5e22916fd3

View File

@@ -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
}