summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2015-12-16 23:55:25 +1100
committerMichael Palimaka <kensington@gentoo.org>2015-12-17 00:07:01 +1100
commit2fff4be220898ad716a98d7eac6513a443ef803d (patch)
tree222f245d0da2cfc916b07fe159ed01824170b1d0 /eclass/kde5.eclass
parentdev-java/tomcat-native: version bump (diff)
downloadgentoo-2fff4be220898ad716a98d7eac6513a443ef803d.tar.gz
gentoo-2fff4be220898ad716a98d7eac6513a443ef803d.tar.bz2
gentoo-2fff4be220898ad716a98d7eac6513a443ef803d.zip
kde5.eclass: enable automatic fetching for out-of-band point releases
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r--eclass/kde5.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index b2cc679183d0..6ed2bd7759b2 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -258,15 +258,17 @@ _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)
+
case ${PV} in
5.?.[6-9]? )
# Plasma 5 beta releases
- SRC_URI="mirror://kde/unstable/plasma/${PV}/${_kmname}-${PV}.tar.xz"
+ SRC_URI="mirror://kde/unstable/plasma/${plasmapv}/${_kmname}-${PV}.tar.xz"
RESTRICT+=" mirror"
;;
*)
# Plasma 5 stable releases
- SRC_URI="mirror://kde/stable/plasma/${PV}/${_kmname}-${PV}.tar.xz" ;;
+ SRC_URI="mirror://kde/stable/plasma/${plasmapv}/${_kmname}-${PV}.tar.xz" ;;
esac
;;
esac