summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-08-21 23:24:40 +0200
committerMichael Palimaka <kensington@gentoo.org>2016-09-01 00:23:26 +1000
commita5a2468eaece1ac12a613a1efa8db1e23d4501f6 (patch)
tree88dcc21722221596d15dbed11add9753615ea75f /eclass/kde5.eclass
parentkde5.eclass: Add KDE_TEST="forceoptional-recursive" handling (diff)
downloadgentoo-a5a2468eaece1ac12a613a1efa8db1e23d4501f6.tar.gz
gentoo-a5a2468eaece1ac12a613a1efa8db1e23d4501f6.tar.bz2
gentoo-a5a2468eaece1ac12a613a1efa8db1e23d4501f6.zip
kde5.eclass: Fix SRC_URI, kdevelop missing trailing .0 in first release
Add kdevelop-pg-qt SRC_URIs
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r--eclass/kde5.eclass32
1 files changed, 32 insertions, 0 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 1d093b1ecbb7..feffa112375e 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -225,6 +225,19 @@ if [[ -n ${KMNAME} && ${KMNAME} != ${PN} && ${KDE_BUILD_TYPE} = release ]]; then
S=${WORKDIR}/${KMNAME}-${PV}
fi
+# Drop this when kdepim is finally split upstream
+if [[ -n ${KMNAME} && ${KMNAME} != ${PN} && ${KMNAME} = kdepim ]]; then
+ S="${S}/${PN}"
+fi
+
+if [[ -n ${KDEBASE} && ${KDEBASE} = kdevelop && ${KDE_BUILD_TYPE} = release ]]; then
+ if [[ -n ${KMNAME} ]]; then
+ S=${WORKDIR}/${KMNAME}-${PV%.0} # kdevelop missing trailing .0 in first release
+ else
+ S=${WORKDIR}/${PN}-${PV%.0} # kdevelop missing trailing .0 in first release
+ fi
+fi
+
# Determine fetch location for released tarballs
_calculate_src_uri() {
debug-print-function ${FUNCNAME} "$@"
@@ -279,6 +292,25 @@ _calculate_src_uri() {
;;
esac
+ if [[ -z ${SRC_URI} && -n ${KDEBASE} ]] ; then
+ local _kdebase
+ case ${PN} in
+ kdevelop-pg-qt)
+ _kdebase=${PN} ;;
+ *)
+ _kdebase=${KDEBASE} ;;
+ esac
+ case ${PV} in
+ *.*.[6-9]? )
+ SRC_URI="mirror://kde/unstable/${_kdebase}/${PV}/src/${_kmname}-${PV}.tar.xz"
+ RESTRICT+=" mirror"
+ ;;
+ *)
+ SRC_URI="mirror://kde/stable/${_kdebase}/${PV}/src/${_kmname}-${PV%.0}.tar.xz" ;;
+ esac
+ unset _kdebase
+ fi
+
if [[ ${KDEBASE} = kdel10n ]] ; then
local uri_base="${SRC_URI/${_kmname}-${PV}.tar.xz/}kde-l10n/kde-l10n"
SRC_URI=""