summaryrefslogtreecommitdiff
path: root/eclass/gear.kde.org.eclass
blob: e582a5add5bc8279f808f27f41d2b6c5e10dda79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: gear.kde.org.eclass
# @MAINTAINER:
# kde@gentoo.org
# @SUPPORTED_EAPIS: 8
# @PROVIDES: kde.org
# @BLURB: Support eclass for KDE Gear packages.
# @DESCRIPTION:
# This eclass extends kde.org.eclass for KDE Gear release group to assemble
# default SRC_URI for tarballs, set up git-r3.eclass for stable/master branch
# versions or restrict access to unreleased (packager access only) tarballs
# in Gentoo KDE overlay.
#
# This eclass unconditionally inherits kde.org.eclass and all its public
# variables and helper functions (not phase functions) may be considered as
# part of this eclass's API.

case ${EAPI} in
	8) ;;
	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac

if [[ -z ${_GEAR_KDE_ORG_ECLASS} ]]; then
_GEAR_KDE_ORG_ECLASS=1

# @ECLASS_VARIABLE: KDE_PV_UNRELEASED
# @INTERNAL
# @DESCRIPTION:
# For proper description see kde.org.eclass manpage.
KDE_PV_UNRELEASED=( )

inherit kde.org

HOMEPAGE="https://apps.kde.org/"

# @ECLASS_VARIABLE: KDE_ORG_SCHEDULE_URI
# @INTERNAL
# @DESCRIPTION:
# For proper description see kde.org.eclass manpage.
KDE_ORG_SCHEDULE_URI+="/KDE_Gear_${PV:0:5}_Schedule"

# @ECLASS_VARIABLE: _KDE_SRC_URI
# @INTERNAL
# @DESCRIPTION:
# Helper variable to construct release group specific SRC_URI.
_KDE_SRC_URI="mirror://kde/"

if [[ ${KDE_BUILD_TYPE} == live ]]; then
	if [[ ${PV} == ??.??.49.9999 ]]; then
		EGIT_BRANCH="release/$(ver_cut 1-2)"
	fi
elif [[ -z ${KDE_ORG_COMMIT} ]]; then
	case ${PV} in
		??.??.[6-9]? )
			_KDE_SRC_URI+="unstable/release-service/${PV}/src/"
			RESTRICT+=" mirror"
			;;
		*) _KDE_SRC_URI+="stable/release-service/${PV}/src/" ;;
	esac

	SRC_URI="${_KDE_SRC_URI}${KDE_ORG_TAR_PN}-${PV}.tar.xz"
fi

# list of applications ported to KF6 in SLOT=6 having to block SLOT=5
if $(ver_test -gt 24.01.75); then
	case ${PN} in
		akonadi | \
		akonadi-calendar | \
		akonadi-contacts | \
		akonadi-import-wizard | \
		akonadi-mime | \
		akonadi-notes | \
		akonadi-search | \
		akonadiconsole | \
		akregator | \
		analitza | \
		ark | \
		audiocd-kio | \
		baloo-widgets | \
		blinken | \
		bomber | \
		bovo | \
		calendarjanitor | \
		calendarsupport | \
		colord-kde | \
		dolphin | \
		dolphin-plugins-dropbox | \
		dolphin-plugins-git | \
		dolphin-plugins-mercurial | \
		dolphin-plugins-mountiso | \
		dolphin-plugins-subversion | \
		dragon | \
		elisa | \
		eventviews | \
		filelight | \
		granatier | \
		grantlee-editor | \
		grantleetheme | \
		gwenview | \
		incidenceeditor | \
		isoimagewriter | \
		juk | \
		kaccounts-integration | \
		kaccounts-providers | \
		kaddressbook | \
		kajongg | \
		kalarm | \
		kalgebra | \
		kamera | \
		kanagram | \
		kapman | \
		kapptemplate | \
		kate | \
		kate-addons | \
		kate-lib | \
		katomic | \
		kbackup | \
		kblackbox | \
		kblocks | \
		kbounce | \
		kbreakout | \
		kbruch | \
		kcachegrind | \
		kcalc | \
		kcalutils | \
		kcharselect | \
		kcolorchooser | \
		kcron | \
		kde-dev-utils | \
		kdebugsettings | \
		kdeconnect | \
		kdegraphics-mobipocket | \
		kdenetwork-filesharing | \
		kdenlive | \
		kdepim-addons | \
		kdepim-runtime | \
		kdf | \
		kdialog | \
		kdiamond | \
		keditbookmarks | \
		kfind | \
		kfourinline | \
		kgeography | \
		kget | \
		kgoldrunner | \
		kgpg | \
		khangman | \
		khelpcenter | \
		kidentitymanagement | \
		kigo | \
		killbots | \
		kimap | \
		kiriki | \
		kiten | \
		kitinerary | \
		kjumpingcube | \
		kldap | \
		kleopatra | \
		klettres | \
		klickety | \
		klines | \
		kmag | \
		kmahjongg | \
		kmail | \
		kmail-account-wizard | \
		kmailtransport | \
		kmbox | \
		kmime | \
		kmines | \
		kmousetool | \
		kmouth | \
		knavalbattle | \
		knetwalk | \
		knights | \
		knotes | \
		kolf | \
		kollision | \
		konqueror | \
		konquest | \
		konsole | \
		konsolekalendar | \
		kontact | \
		kontactinterface | \
		kontrast | \
		konversation | \
		korganizer | \
		kopeninghours | \
		kosmindoormap | \
		kpat | \
		kpimtextedit | \
		kpkpass | \
		kpmcore | \
		kpublictransport | \
		kreversi | \
		krfb | \
		kruler | \
		kshisen | \
		ksirk | \
		ksmtp | \
		ksnakeduel | \
		kspaceduel | \
		ksquares | \
		ksudoku | \
		ksystemlog | \
		kteatime | \
		ktimer | \
		ktorrent | \
		ktuberling | \
		kturtle | \
		kubrick | \
		kwalletmanager | \
		kweather | \
		kwordquiz | \
		kwrite | \
		libgravatar | \
		libkeduvocdocument | \
		libkdegames | \
		libkdepim | \
		libkleo | \
		libkmahjongg | \
		libksieve | \
		libktnef | \
		libktorrent | \
		lskat | \
		mailcommon | \
		mailimporter | \
		markdownpart | \
		mbox-importer | \
		merkuro | \
		messagelib | \
		okular | \
		palapeli | \
		parley | \
		partitionmanager | \
		picmi | \
		pim-data-exporter | \
		pim-sieve-editor | \
		pimcommon | \
		skanpage | \
		spectacle | \
		svgpart | \
		sweeper | \
		thumbnailers | \
		yakuake | \
		zanshin)
			RDEPEND+=" !${CATEGORY}/${PN}:5" ;;
		*) ;;
	esac
fi

fi