commit: 53ce4213414414d2796ad806ae47fd5ecfbc0766
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sun May 10 18:48:48 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Mon May 11 18:26:49 2015 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=53ce4213
[eclass] Add new variable KDE_BLOCK_SLOT4
This variable is used when KDE_AUTODEPS is set.
If set to "true", add RDEPEND block on kde-{base,apps}/${PN}:4
eclass/kde5.eclass | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index ff56c3b..947e001 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -41,6 +41,12 @@ EXPORT_FUNCTIONS pkg_pretend pkg_setup pkg_nofetch
src_unpack src_prepare src_co
# For any other value, add a dependency on dev-qt/qtcore:5 and
kde-frameworks/extra-cmake-modules:5.
: ${KDE_AUTODEPS:=true}
+# @ECLASS-VARIABLE: KDE_BLOCK_SLOT4
+# @DESCRIPTION:
+# This variable is used when KDE_AUTODEPS is set.
+# If set to "true", add RDEPEND block on kde-{base,apps}/${PN}:4
+: ${KDE_BLOCK_SLOT4:=true}
+
# @ECLASS-VARIABLE: KDE_DEBUG
# @DESCRIPTION:
# If set to "false", unconditionally build with -DNDEBUG.
@@ -143,7 +149,7 @@ case ${KDE_AUTODEPS} in
"
fi
- if [[ ${CATEGORY} == kde-apps ]]; then
+ if [[ ${KDE_BLOCK_SLOT4} = true && ${CATEGORY} = kde-apps ]];
then
RDEPEND+="
!kde-apps/${PN}:4
!kde-base/${PN}