diff options
author | Michael Palimaka <kensington@gentoo.org> | 2015-11-05 05:52:29 +1100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2015-11-14 04:18:50 +1100 |
commit | 5e22916fd3616ee47b16b06e67555ef2b6b5bd8b (patch) | |
tree | 47d9065563e874f4a832e4e728937b807619d807 /eclass/kde5.eclass | |
parent | kde5.eclass: introduce "forceoptional" value for KDE_HANDBOOK (diff) | |
download | gentoo-5e22916fd3616ee47b16b06e67555ef2b6b5bd8b.tar.gz gentoo-5e22916fd3616ee47b16b06e67555ef2b6b5bd8b.tar.bz2 gentoo-5e22916fd3616ee47b16b06e67555ef2b6b5bd8b.zip |
kde5.eclass: introduce forceoptional value for KDE_TEST
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r-- | eclass/kde5.eclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index 7a5d2222eb50..0f50623e4ff0 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 } |