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: Sun, 18 Jul 2021 16:55:45
Message-Id: 1626596305.ee2db584e3388e1c3375ff071aa3b21366b6704b.asturm@gentoo
1 commit: ee2db584e3388e1c3375ff071aa3b21366b6704b
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 18 08:00:24 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 08:18:25 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=ee2db584
7
8 kde.org.eclass: Harmonise equals operator to == everywhere
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 eclass/kde.org.eclass | 26 +++++++++++++-------------
13 1 file changed, 13 insertions(+), 13 deletions(-)
14
15 diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass
16 index ee154f0aa0..0503bcf6a2 100644
17 --- a/eclass/kde.org.eclass
18 +++ b/eclass/kde.org.eclass
19 @@ -30,12 +30,12 @@ _KDE_ORG_ECLASS=1
20 # If PV matches "*9999*", this is automatically set to "live".
21 # Otherwise, this is automatically set to "release".
22 KDE_BUILD_TYPE="release"
23 -if [[ ${PV} = *9999* ]]; then
24 +if [[ ${PV} == *9999* ]]; then
25 KDE_BUILD_TYPE="live"
26 fi
27 export KDE_BUILD_TYPE
28
29 -if [[ ${KDE_BUILD_TYPE} = live ]]; then
30 +if [[ ${KDE_BUILD_TYPE} == live ]]; then
31 inherit git-r3
32 fi
33
34 @@ -147,7 +147,7 @@ case ${CATEGORY} in
35 kde-frameworks)
36 HOMEPAGE="https://kde.org/products/frameworks/"
37 SLOT=5/${PV}
38 - [[ ${KDE_BUILD_TYPE} = release ]] && SLOT=$(ver_cut 1)/$(ver_cut 1-2)
39 + [[ ${KDE_BUILD_TYPE} == release ]] && SLOT=$(ver_cut 1)/$(ver_cut 1-2)
40 ;;
41 *) ;;
42 esac
43 @@ -159,10 +159,10 @@ esac
44 _kde.org_is_unreleased() {
45 local pair
46 for pair in "${KDE_UNRELEASED[@]}" ; do
47 - if [[ "${pair}" = "${CATEGORY}-${PV}" ]]; then
48 + if [[ "${pair}" == "${CATEGORY}-${PV}" ]]; then
49 return 0
50 - elif [[ ${KDE_GEAR} = true ]]; then
51 - if [[ "${pair/kde-apps/${CATEGORY}}" = "${CATEGORY}-${PV}" ]]; then
52 + elif [[ ${KDE_GEAR} == true ]]; then
53 + if [[ "${pair/kde-apps/${CATEGORY}}" == "${CATEGORY}-${PV}" ]]; then
54 return 0
55 fi
56 fi
57 @@ -180,7 +180,7 @@ _kde.org_calculate_src_uri() {
58
59 local _src_uri="mirror://kde/"
60
61 - if [[ ${KDE_GEAR} = true ]]; then
62 + if [[ ${KDE_GEAR} == true ]]; then
63 case ${PV} in
64 ??.??.[6-9]? )
65 _src_uri+="unstable/release-service/${PV}/src/"
66 @@ -218,7 +218,7 @@ _kde.org_calculate_src_uri() {
67 ;;
68 esac
69
70 - if [[ ${PN} = kdevelop* ]]; then
71 + if [[ ${PN} == kdevelop* ]]; then
72 case ${PV} in
73 *.*.[6-9]? )
74 _src_uri+="unstable/kdevelop/${PV}/src/"
75 @@ -256,19 +256,19 @@ _kde.org_calculate_live_repo() {
76 # (anongit) with anything else you might want to use.
77 EGIT_MIRROR=${EGIT_MIRROR:=https://invent.kde.org/${KDE_ORG_CATEGORY}}
78
79 - if [[ ${PV} == ?.??.9999 && ${CATEGORY} = dev-qt ]]; then
80 + if [[ ${PV} == ?.??.9999 && ${CATEGORY} == dev-qt ]]; then
81 EGIT_BRANCH="kde/$(ver_cut 1-2)"
82 fi
83
84 - if [[ ${PV} == ??.??.49.9999 && ${KDE_GEAR} = true ]]; then
85 + if [[ ${PV} == ??.??.49.9999 && ${KDE_GEAR} == true ]]; then
86 EGIT_BRANCH="release/$(ver_cut 1-2)"
87 fi
88
89 - if [[ ${PV} != 9999 && ${CATEGORY} = kde-plasma ]]; then
90 + if [[ ${PV} != 9999 && ${CATEGORY} == kde-plasma ]]; then
91 EGIT_BRANCH="Plasma/$(ver_cut 1-2)"
92 fi
93
94 - if [[ ${PV} != 9999 && ${PN} = kdevelop* ]]; then
95 + if [[ ${PV} != 9999 && ${PN} == kdevelop* ]]; then
96 EGIT_BRANCH="$(ver_cut 1-2)"
97 fi
98
99 @@ -308,7 +308,7 @@ kde.org_pkg_nofetch() {
100 kde-frameworks) sched_uri+="/Frameworks" ;;
101 kde-plasma) sched_uri+="/Plasma_5" ;;
102 *)
103 - [[ ${KDE_GEAR} = true ]] &&
104 + [[ ${KDE_GEAR} == true ]] &&
105 sched_uri+="/KDE_Gear_$(ver_cut 1-2)_Schedule"
106 ;;
107 esac