commit:     abd1214b198cea68416a92d9b6e63417037542dd
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  6 21:28:50 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Mar  6 22:10:38 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=abd1214b

kde5-functions.eclass: versionator -> eapi7-ver

 eclass/kde5-functions.eclass | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index cd0151eb29..63a0d83a75 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -15,10 +15,11 @@
 if [[ -z ${_KDE5_FUNCTIONS_ECLASS} ]]; then
 _KDE5_FUNCTIONS_ECLASS=1
 
-inherit toolchain-funcs versionator
+inherit toolchain-funcs
 
 case ${EAPI} in
-       6) ;;
+       7) ;;
+       6) inherit eapi7-ver ;;
        *) die "EAPI=${EAPI:-0} is not supported" ;;
 esac
 
@@ -185,7 +186,7 @@ add_frameworks_dep() {
        if [[ -n ${3} ]]; then
                version=${3}
        elif [[ ${CATEGORY} = kde-frameworks ]]; then
-               version=$(get_version_component_range 1-2)
+               version=$(ver_cut 1-2)
        elif [[ -z ${3} ]] ; then
                version=${FRAMEWORKS_MINIMAL}
        fi
@@ -217,7 +218,7 @@ add_plasma_dep() {
        if [[ -n ${3} ]]; then
                version=${3}
        elif [[ ${CATEGORY} = kde-plasma ]]; then
-               version=$(get_version_component_range 1-3)
+               version=$(ver_cut 1-3)
        elif [[ -z ${3} ]] ; then
                version=${PLASMA_MINIMAL}
        fi
@@ -249,7 +250,7 @@ add_kdeapps_dep() {
        if [[ -n ${3} ]]; then
                version=${3}
        elif [[ ${CATEGORY} = kde-apps ]]; then
-               version=$(get_version_component_range 1-3)
+               version=$(ver_cut 1-3)
        elif [[ -z ${3} ]] ; then
                version=${KDE_APPS_MINIMAL}
        fi
@@ -302,9 +303,9 @@ add_qt_dep() {
 # If no version is specified, ${PV} is used.
 get_kde_version() {
        local ver=${1:-${PV}}
-       local major=$(get_major_version ${ver})
-       local minor=$(get_version_component_range 2 ${ver})
-       local micro=$(get_version_component_range 3 ${ver})
+       local major=$(ver_cut 1 ${ver})
+       local minor=$(ver_cut 2 ${ver})
+       local micro=$(ver_cut 3 ${ver})
        if [[ ${ver} == 9999 ]]; then
                echo live
        else

Reply via email to