summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-12-07 12:39:32 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-12-12 18:28:12 +0100
commitce8e9d88d489b1f986c6aaedc5b5f78926562c42 (patch)
tree02da37c8c8ea2eb5d495c01c3e4cccdd0cc870aa /eclass/kde.org.eclass
parentkde.org.eclass: Add release-service SRC_URI (diff)
downloadgentoo-ce8e9d88d489b1f986c6aaedc5b5f78926562c42.tar.gz
gentoo-ce8e9d88d489b1f986c6aaedc5b5f78926562c42.tar.bz2
gentoo-ce8e9d88d489b1f986c6aaedc5b5f78926562c42.zip
kde.org.eclass: Introduce KDE_RELEASE_SERVICE
Experiment with non-kde-apps category handling. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/kde.org.eclass')
-rw-r--r--eclass/kde.org.eclass34
1 files changed, 24 insertions, 10 deletions
diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass
index 5735de7ee7f3..87d1573f41dd 100644
--- a/eclass/kde.org.eclass
+++ b/eclass/kde.org.eclass
@@ -40,6 +40,12 @@ EXPORT_FUNCTIONS pkg_nofetch src_unpack
# Name of the package as hosted on kde.org mirrors.
: ${KDE_ORG_NAME:=$PN}
+# @ECLASS-VARIABLE: KDE_RELEASE_SERVICE
+# @DESCRIPTION:
+# If set to "false", do nothing.
+# If set to "true", set SRC_URI accordingly and apply KDE_UNRELEASED.
+: ${KDE_RELEASE_SERVICE:=false}
+
# @ECLASS-VARIABLE: KDE_SELINUX_MODULE
# @DESCRIPTION:
# If set to "none", do nothing.
@@ -66,6 +72,9 @@ KDE_UNRELEASED=( )
HOMEPAGE="https://kde.org/"
case ${CATEGORY} in
+ kde-apps)
+ KDE_RELEASE_SERVICE=true
+ ;;
kde-plasma)
HOMEPAGE="https://kde.org/plasma-desktop"
;;
@@ -82,6 +91,10 @@ _kde.org_is_unreleased() {
for pair in "${KDE_UNRELEASED[@]}" ; do
if [[ "${pair}" = "${CATEGORY}-${PV}" ]]; then
return 0
+ elif [[ ${KDE_RELEASE_SERVICE} = true ]]; then
+ if [[ "${pair/kde-apps/${CATEGORY}}" = "${CATEGORY}-${PV}" ]]; then
+ return 0
+ fi
fi
done
@@ -94,17 +107,18 @@ _kde.org_calculate_src_uri() {
local _src_uri="mirror://kde/"
+ if [[ ${KDE_RELEASE_SERVICE} = true ]]; then
+ case ${PV} in
+ ??.??.[6-9]? )
+ _src_uri+="unstable/applications/${PV}/src/"
+ RESTRICT+=" mirror"
+ ;;
+ 19.08.3? ) _src_uri+="stable/applications/${PV}/src/" ;;
+ *) _src_uri+="stable/release-service/${PV}/src/" ;;
+ esac
+ fi
+
case ${CATEGORY} in
- kde-apps)
- case ${PV} in
- ??.??.[6-9]? )
- _src_uri+="unstable/applications/${PV}/src/"
- RESTRICT+=" mirror"
- ;;
- 19.08.3? ) _src_uri+="stable/applications/${PV}/src/" ;;
- *) _src_uri+="stable/release-service/${PV}/src/" ;;
- esac
- ;;
kde-frameworks)
_src_uri+="stable/frameworks/$(ver_cut 1-2)/"
case ${PN} in