mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
kde5.eclass: introduce forceoptional value for KDE_TEST
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user