1 |
commit: 81cb1f69c7df360f7bd6a636caca1ae59ba9c820 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 4 18:52:29 2015 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 4 18:56:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=81cb1f69 |
7 |
|
8 |
kde5.eclass: introduce forceoptional value for KDE_TEST |
9 |
|
10 |
eclass/kde5.eclass | 13 +++++++++++++ |
11 |
1 file changed, 13 insertions(+) |
12 |
|
13 |
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass |
14 |
index 4ddcea7..aad8416 100644 |
15 |
--- a/eclass/kde5.eclass |
16 |
+++ b/eclass/kde5.eclass |
17 |
@@ -93,6 +93,8 @@ fi |
18 |
# @DESCRIPTION: |
19 |
# If set to "false", do nothing. |
20 |
# For any other value, add test to IUSE and add a dependency on dev-qt/qttest:5. |
21 |
+# If set to "forceoptional", remove a Qt5Test dependency from the root |
22 |
+# CMakeLists.txt in addition to the above. |
23 |
if [[ ${CATEGORY} = kde-frameworks ]]; then |
24 |
: ${KDE_TEST:=true} |
25 |
else |
26 |
@@ -415,6 +417,11 @@ kde5_pkg_nofetch() { |
27 |
eerror "This is not a bug. Please do not file bugs or contact upstream about this." |
28 |
eerror "" |
29 |
eerror "Please consult the upstream release schedule to see when this " |
30 |
+ if [[ ${KDE_HANDBOOK} = forceoptional ]] ; then |
31 |
+ if ! use_if_iuse handbook ; then |
32 |
+ punt_bogus_dep KF5 DocTools |
33 |
+ fi |
34 |
+ fi |
35 |
eerror "package is scheduled to be released:" |
36 |
eerror "https://techbase.kde.org/Schedules" |
37 |
} |
38 |
@@ -519,6 +526,12 @@ kde5_src_prepare() { |
39 |
fi |
40 |
fi |
41 |
|
42 |
+ if [[ ${KDE_TEST} = forceoptional ]] ; then |
43 |
+ if ! use_if_iuse test ; then |
44 |
+ punt_bogus_dep Qt5 Test |
45 |
+ fi |
46 |
+ fi |
47 |
+ |
48 |
cmake-utils_src_prepare |
49 |
} |