Skip to content

Commit

Permalink
kde5.eclass: Add KDE_SUBSLOT
Browse files Browse the repository at this point in the history
  • Loading branch information
a17r authored and kensington committed Nov 26, 2016
1 parent 6c41592 commit d23112e
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions eclass/kde5.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) ;;
*)
Expand Down

0 comments on commit d23112e

Please sign in to comment.