kde5.eclass: Fix KDE_SCM=svn
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Fri, 31 Jul 2015 20:55:31 +0000 (22:55 +0200)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 13 Aug 2015 13:39:07 +0000 (23:39 +1000)
eclass/kde5.eclass

index d5582a360b3fb8067cc14ec50ffab7e50aef140b..eae14e1860d53add459d2e9a33b75093c8236af4 100644 (file)
@@ -276,13 +276,25 @@ _calculate_live_repo() {
                        # (anonsvn) with anything else you might want to use.
                        ESVN_MIRROR=${ESVN_MIRROR:=svn://anonsvn.kde.org/home/kde}
 
-                       local branch_prefix="KDE"
+                       local branch_prefix="trunk/KDE"
+
+                       if [[ ${PV} == ??.??.49.9999 && ${CATEGORY} = kde-apps ]]; then
+                               branch_prefix="branches/Applications/$(get_version_component_range 1-2)"
+                       fi
+
+                       if [[ ${PV} != 9999 && ${CATEGORY} = kde-plasma ]]; then
+                               branch_prefix="branches/plasma/$(get_version_component_range 1-2)"
+                       fi
+
+                       local _kmname
 
                        if [[ -n ${KMNAME} ]]; then
-                               branch_prefix="${KMNAME}"
+                               _kmname=${KMNAME}
+                       else
+                               _kmname=${PN}
                        fi
 
-                       ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${branch_prefix}/${PN}"
+                       ESVN_REPO_URI="${ESVN_MIRROR}/${branch_prefix}/${_kmname}"
                        ;;
                git)
                        # @ECLASS-VARIABLE: EGIT_MIRROR