From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E38CC138334 for ; Sat, 7 Dec 2019 11:43:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4EEE8E0886; Sat, 7 Dec 2019 11:43:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8F783E086C for ; Sat, 7 Dec 2019 11:43:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 33CCA34D86F for ; Sat, 7 Dec 2019 11:43:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD3C58D3 for ; Sat, 7 Dec 2019 11:43:30 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1575718958.70dc14aad713cb2c5dda88eed866112dc5d2b2ee.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/kde.org.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 70dc14aad713cb2c5dda88eed866112dc5d2b2ee X-VCS-Branch: master Date: Sat, 7 Dec 2019 11:43:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b757dcd2-9df6-42a2-bd0f-ca400818b2d5 X-Archives-Hash: f3f274be5f41914490b01241c91b329c commit: 70dc14aad713cb2c5dda88eed866112dc5d2b2ee Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Dec 7 11:39:32 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Dec 7 11:42:38 2019 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=70dc14aa kde.org.eclass: Introduce KDE_RELEASE_SERVICE Experiment with non-kde-apps category handling. Signed-off-by: Andreas Sturmlechner gentoo.org> eclass/kde.org.eclass | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass index 5735de7ee7..87d1573f41 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