summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-11-19 01:13:02 +0100
committerMichael Palimaka <kensington@gentoo.org>2016-11-27 03:14:01 +1100
commitd23112e33fc03daead48a8040d2dd2e3fd427ec5 (patch)
treee332a0be150c7f7a706ff7cc1f718483c4f56883 /eclass/kde5.eclass
parentkde5-functions.eclass: Move *_MINIMAL setup here from kde5.eclass (diff)
downloadgentoo-d23112e33fc03daead48a8040d2dd2e3fd427ec5.tar.gz
gentoo-d23112e33fc03daead48a8040d2dd2e3fd427ec5.tar.bz2
gentoo-d23112e33fc03daead48a8040d2dd2e3fd427ec5.zip
kde5.eclass: Add KDE_SUBSLOT
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r--eclass/kde5.eclass33
1 files changed, 30 insertions, 3 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 4876d7c3bc61..a6fdfa404f1c 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -113,6 +113,14 @@ fi
# add a dependency on sec-policy/selinux-${KDE_SELINUX_MODULE} to (R)DEPEND.
: ${KDE_SELINUX_MODULE:=none}
+# @ECLASS-VARIABLE: KDE_SUBSLOT
+# @DESCRIPTION:
+# If set to "false", do nothing.
+# If set to "true", add a subslot to the package, where subslot is either
+# defined as major.minor version for kde-*/ categories or ${PV} if other.
+# For any other value, that value will be used as subslot.
+: ${KDE_SUBSLOT:=false}
+
# @ECLASS-VARIABLE: KDE_UNRELEASED
# @INTERNAL
# @DESCRIPTION
@@ -133,12 +141,31 @@ fi
LICENSE="GPL-2"
+SLOT=5
+
if [[ ${CATEGORY} = kde-frameworks ]]; then
- SLOT=5/$(get_version_component_range 1-2)
-else
- SLOT=5
+ KDE_SUBSLOT=true
fi
+case ${KDE_SUBSLOT} in
+ false) ;;
+ true)
+ case ${CATEGORY} in
+ kde-frameworks | \
+ kde-plasma | \
+ kde-apps)
+ SLOT+="/$(get_version_component_range 1-2)"
+ ;;
+ *)
+ SLOT+="/${PV}"
+ ;;
+ esac
+ ;;
+ *)
+ SLOT+="/${KDE_SUBSLOT}"
+ ;;
+esac
+
case ${KDE_AUTODEPS} in
false) ;;
*)