Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: eclass/
Date: Sat, 23 May 2020 21:24:48
Message-Id: 1590269065.1dfb073303b39c71c2afdfbec0ecbd7d56ae3e27.asturm@gentoo
1 commit: 1dfb073303b39c71c2afdfbec0ecbd7d56ae3e27
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 10 23:13:21 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat May 23 21:24:25 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=1dfb0733
7
8 kde.org.eclass: Add KDE_ORG_CATEGORIES map and KDE_ORG_CATEGORY
9
10 To support invent.kde.org git repository addresses without redirect warnings.
11
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 eclass/kde.org.eclass | 46 +++++++++++++++++++++++++++++++++++++++++++++-
15 1 file changed, 45 insertions(+), 1 deletion(-)
16
17 diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass
18 index 2d21bacc5c..aaee2a2cba 100644
19 --- a/eclass/kde.org.eclass
20 +++ b/eclass/kde.org.eclass
21 @@ -34,6 +34,50 @@ fi
22
23 EXPORT_FUNCTIONS pkg_nofetch src_unpack
24
25 +# @ECLASS-VARIABLE: KDE_ORG_CATEGORIES
26 +# @INTERNAL
27 +# @DESCRIPTION
28 +# Map of ${CATEGORY}=<upstream category> key-value pairs.
29 +declare -A KDE_ORG_CATEGORIES=(
30 + [app-accessibility]=accessibility
31 + [app-admin]=system
32 + [app-backup]=system
33 + [app-cdr]=utilities
34 + [app-editors]=office
35 + [app-office]=office
36 + [app-text]=office
37 + [dev-libs]=libraries
38 + [dev-util]=sdk
39 + [games-kids]=education
40 + [kde-frameworks]=frameworks
41 + [kde-plasma]=plasma
42 + [mail-client]=pim
43 + [media-gfx]=graphics
44 + [media-libs]=libraries
45 + [media-sound]=multimedia
46 + [media-video]=multimedia
47 + [net-im]=network
48 + [net-irc]=network
49 + [net-libs]=libraries
50 + [net-misc]=network
51 + [net-p2p]=network
52 + [sci-astronomy]=education
53 + [sci-calculators]=utilities
54 + [sci-mathematics]=education
55 + [sci-visualization]=education
56 + [sys-block]=system
57 + [sys-libs]=system
58 + [www-client]=network
59 + [x11-libs]=libraries
60 +)
61 +readonly KDE_ORG_CATEGORIES
62 +
63 +# @ECLASS-VARIABLE: KDE_ORG_CATEGORY
64 +# @DESCRIPTION:
65 +# If unset, default value is mapped from ${CATEGORY} to corresponding upstream
66 +# category on invent.kde.org, with "kde" as fallback value.
67 +: ${KDE_ORG_CATEGORY:=${KDE_ORG_CATEGORIES[${CATEGORY}]:-kde}}
68 +
69 # @ECLASS-VARIABLE: KDE_ORG_NAME
70 # @DESCRIPTION:
71 # If unset, default value is set to ${PN}.
72 @@ -171,7 +215,7 @@ _kde.org_calculate_live_repo() {
73 # @DESCRIPTION:
74 # This variable allows easy overriding of default kde mirror service
75 # (anongit) with anything else you might want to use.
76 - EGIT_MIRROR=${EGIT_MIRROR:=https://invent.kde.org/kde}
77 + EGIT_MIRROR=${EGIT_MIRROR:=https://invent.kde.org/${KDE_ORG_CATEGORY}}
78
79 if [[ ${PV} == ??.??.49.9999 && ${KDE_RELEASE_SERVICE} = true ]]; then
80 EGIT_BRANCH="release/$(ver_cut 1-2)"