summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-07-31 22:55:31 +0200
committerMichael Palimaka <kensington@gentoo.org>2015-08-13 23:39:07 +1000
commit0854fafc58ae5f30539ae66346341d5088328951 (patch)
tree2a9332785f314d1a7379c60ceeaba54bfc57c83d /eclass/kde5.eclass
parentkde5.eclass: Add KDE_DOC_DIR variable (diff)
downloadgentoo-0854fafc58ae5f30539ae66346341d5088328951.tar.gz
gentoo-0854fafc58ae5f30539ae66346341d5088328951.tar.bz2
gentoo-0854fafc58ae5f30539ae66346341d5088328951.zip
kde5.eclass: Fix KDE_SCM=svn
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r--eclass/kde5.eclass18
1 files changed, 15 insertions, 3 deletions
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