summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-03-06 22:35:19 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2018-05-12 16:01:17 +0200
commit6946849996bff6f4567158fae040a13045713772 (patch)
treee46ecd71ec8400eca97db4ffcbe99974c115413d /eclass
parentkde5-functions.eclass: versionator -> eapi7-ver (diff)
downloadgentoo-6946849996bff6f4567158fae040a13045713772.tar.gz
gentoo-6946849996bff6f4567158fae040a13045713772.tar.bz2
gentoo-6946849996bff6f4567158fae040a13045713772.zip
kde5.eclass: versionator -> eapi7-ver
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde5.eclass14
1 files changed, 9 insertions, 5 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 738020a3b4e0..681066c3caa1 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -31,7 +31,11 @@ _KDE5_ECLASS=1
# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
: ${VIRTUALX_REQUIRED:=manual}
-inherit cmake-utils eutils flag-o-matic gnome2-utils kde5-functions versionator virtualx xdg
+inherit cmake-utils eutils flag-o-matic gnome2-utils kde5-functions virtualx xdg
+
+case ${EAPI} in
+ 6) inherit eapi7-ver ;;
+esac
if [[ ${KDE_BUILD_TYPE} = live ]]; then
case ${KDE_SCM} in
@@ -180,7 +184,7 @@ case ${KDE_SUBSLOT} in
kde-frameworks | \
kde-plasma | \
kde-apps)
- SLOT+="/$(get_version_component_range 1-2)"
+ SLOT+="/$(ver_cut 1-2)"
;;
*)
SLOT+="/${PV}"
@@ -338,7 +342,7 @@ _calculate_src_uri() {
kde-frameworks)
SRC_URI="mirror://kde/stable/frameworks/${PV%.*}/${_kmname}-${PV}.tar.xz" ;;
kde-plasma)
- local plasmapv=$(get_version_component_range 1-3)
+ local plasmapv=$(ver_cut 1-3)
case ${PV} in
5.?.[6-9]? | 5.??.[6-9]? )
@@ -407,11 +411,11 @@ _calculate_live_repo() {
fi
if [[ ${PV} == ??.??.49.9999 && ${CATEGORY} = kde-apps ]]; then
- EGIT_BRANCH="Applications/$(get_version_component_range 1-2)"
+ EGIT_BRANCH="Applications/$(ver_cut 1-2)"
fi
if [[ ${PV} != 9999 && ${CATEGORY} = kde-plasma ]]; then
- EGIT_BRANCH="Plasma/$(get_version_component_range 1-2)"
+ EGIT_BRANCH="Plasma/$(ver_cut 1-2)"
fi
EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}"