From: Andreas Sturmlechner Date: Fri, 31 Jul 2015 20:55:31 +0000 (+0200) Subject: kde5.eclass: Fix KDE_SCM=svn X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0854fafc58ae5f30539ae66346341d5088328951;p=gentoo.git kde5.eclass: Fix KDE_SCM=svn --- diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index d5582a360b3f..eae14e1860d5 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -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