| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.69 2010/09/09 17:02:30 reavertm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.79 2010/12/06 10:17:04 tampakrap Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: kde4-base.eclass |
5 | # @ECLASS: kde4-base.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # kde@gentoo.org |
7 | # kde@gentoo.org |
| 8 | # @BLURB: This eclass provides functions for kde 4.X ebuilds |
8 | # @BLURB: This eclass provides functions for kde 4.X ebuilds |
| … | |
… | |
| 11 | # and KDE4 applications. |
11 | # and KDE4 applications. |
| 12 | # |
12 | # |
| 13 | # NOTE: KDE 4 ebuilds by default define EAPI="2", this can be redefined but |
13 | # NOTE: KDE 4 ebuilds by default define EAPI="2", this can be redefined but |
| 14 | # eclass will fail with version older than 2. |
14 | # eclass will fail with version older than 2. |
| 15 | |
15 | |
|
|
16 | # @ECLASS-VARIABLE: VIRTUALX_REQUIRED |
|
|
17 | # @DESCRIPTION: |
|
|
18 | # Do we need an X server? Valid values are "always", "optional", and "manual". |
|
|
19 | # "tests" is a synonym for "optional". While virtualx.eclass supports in principle |
|
|
20 | # also the use of an X server during other ebuild phases, we only use it in |
|
|
21 | # src_test here. Most likely you'll want to set "optional", which introduces the |
|
|
22 | # use-flag "test" (if not already present), adds dependencies conditional on that |
|
|
23 | # use-flag, and automatically runs (only) the ebuild test phase with a virtual X server |
|
|
24 | # present. This makes things a lot more comfortable than the bare virtualx eclass. |
|
|
25 | |
|
|
26 | # In case the variable is not set in the ebuild, let virtualx eclass not do anything |
|
|
27 | : ${VIRTUALX_REQUIRED:=manual} |
|
|
28 | |
| 16 | inherit kde4-functions base eutils |
29 | inherit kde4-functions base virtualx eutils |
| 17 | |
30 | |
| 18 | get_build_type |
31 | get_build_type |
| 19 | if [[ ${BUILD_TYPE} = live ]]; then |
32 | if [[ ${BUILD_TYPE} = live ]]; then |
| 20 | if [[ ${KDEBASE} = kdevelop ]]; then |
33 | if [[ ${KDEBASE} = kdevelop ]]; then |
| 21 | inherit git |
34 | inherit git |
| … | |
… | |
| 60 | case ${KDEBASE} in |
73 | case ${KDEBASE} in |
| 61 | kde-base) |
74 | kde-base) |
| 62 | # Determine SLOT from PVs |
75 | # Determine SLOT from PVs |
| 63 | case ${PV} in |
76 | case ${PV} in |
| 64 | *.9999*) SLOT="${PV/.9999*/}" ;; # stable live |
77 | *.9999*) SLOT="${PV/.9999*/}" ;; # stable live |
| 65 | 4.6* | 4.5.[6-9]*) SLOT="4.6" ;; |
78 | 4.6* | 4.5.[6-9][0-9]*) SLOT="4.6" ;; |
| 66 | 4.5* | 4.4.[6-9]*) SLOT="4.5" ;; |
79 | 4.5* | 4.4.[6-9][0-9]*) SLOT="4.5" ;; |
| 67 | 4.4* | 4.3.[6-9]*) SLOT="4.4" ;; |
80 | 4.4* | 4.3.[6-9][0-9]*) SLOT="4.4" ;; |
| 68 | 9999*) SLOT="live" ;; # regular live |
81 | 9999*) SLOT="live" ;; # regular live |
| 69 | *) die "Unsupported ${PV}" ;; |
82 | *) die "Unsupported ${PV}" ;; |
| 70 | esac |
83 | esac |
| 71 | KDE_MINIMAL="${SLOT}" |
84 | KDE_MINIMAL="${SLOT}" |
| 72 | ;; |
85 | ;; |
| … | |
… | |
| 111 | EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm |
124 | EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm |
| 112 | |
125 | |
| 113 | unset buildsystem_eclass |
126 | unset buildsystem_eclass |
| 114 | unset export_fns |
127 | unset export_fns |
| 115 | |
128 | |
|
|
129 | # @ECLASS-VARIABLE: DECLARATIVE_REQUIRED |
|
|
130 | # @DESCRIPTION: |
|
|
131 | # Is qt-declarative required? Possible values are 'always', 'optional' and 'never'. |
|
|
132 | # This variable must be set before inheriting any eclasses. Defaults to 'never'. |
|
|
133 | DECLARATIVE_REQUIRED="${DECLARATIVE_REQUIRED:-never}" |
|
|
134 | |
|
|
135 | # @ECLASS-VARIABLE: QTHELP_REQUIRED |
|
|
136 | # @DESCRIPTION: |
|
|
137 | # Is qt-assistant required? Possible values are 'always', 'optional' and 'never'. |
|
|
138 | # This variable must be set before inheriting any eclasses. Defaults to 'never'. |
|
|
139 | QTHELP_REQUIRED="${QTHELP_REQUIRED:-never}" |
|
|
140 | |
| 116 | # @ECLASS-VARIABLE: OPENGL_REQUIRED |
141 | # @ECLASS-VARIABLE: OPENGL_REQUIRED |
| 117 | # @DESCRIPTION: |
142 | # @DESCRIPTION: |
| 118 | # Is qt-opengl required? Possible values are 'always', 'optional' and 'never'. |
143 | # Is qt-opengl required? Possible values are 'always', 'optional' and 'never'. |
| 119 | # This variable must be set before inheriting any eclasses. Defaults to 'never'. |
144 | # This variable must be set before inheriting any eclasses. Defaults to 'never'. |
| 120 | OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}" |
145 | OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}" |
| … | |
… | |
| 139 | |
164 | |
| 140 | # @ECLASS-VARIABLE: KDE_REQUIRED |
165 | # @ECLASS-VARIABLE: KDE_REQUIRED |
| 141 | # @DESCRIPTION: |
166 | # @DESCRIPTION: |
| 142 | # Is kde required? Possible values are 'always', 'optional' and 'never'. |
167 | # Is kde required? Possible values are 'always', 'optional' and 'never'. |
| 143 | # This variable must be set before inheriting any eclasses. Defaults to 'always' |
168 | # This variable must be set before inheriting any eclasses. Defaults to 'always' |
| 144 | # If set to always or optional, KDE_MINIMAL may be overriden as well. |
169 | # If set to 'always' or 'optional', KDE_MINIMAL may be overriden as well. |
| 145 | # Note that for kde-base packages this variable is fixed to 'always'. |
170 | # Note that for kde-base packages this variable is fixed to 'always'. |
| 146 | KDE_REQUIRED="${KDE_REQUIRED:-always}" |
171 | KDE_REQUIRED="${KDE_REQUIRED:-always}" |
| 147 | |
172 | |
| 148 | # @ECLASS-VARIABLE: KDE_HANDBOOK |
173 | # @ECLASS-VARIABLE: KDE_HANDBOOK |
| 149 | # @DESCRIPTION: |
174 | # @DESCRIPTION: |
| 150 | # Set to enable handbook in application. It adds +handbook to IUSE, handbook dirs |
175 | # Set to enable handbook in application. Possible values are 'always', 'optional' |
|
|
176 | # (handbook USE flag) and 'never'. |
|
|
177 | # This variable must be set before inheriting any eclasses. Defaults to 'never'. |
|
|
178 | # It adds default handbook dirs for kde-base packages to KMEXTRA and in any case it |
| 151 | # to KMEXTRA and ensures buildtime and runtime dependencies. |
179 | # ensures buildtime and runtime dependencies. |
| 152 | [[ -n ${KDE_HANDBOOK} ]] && IUSE+=" +handbook" |
180 | KDE_HANDBOOK="${KDE_HANDBOOK:-never}" |
| 153 | |
181 | |
| 154 | # Setup packages inheriting this eclass |
182 | # Setup packages inheriting this eclass |
| 155 | case ${KDEBASE} in |
183 | case ${KDEBASE} in |
| 156 | kde-base) |
184 | kde-base) |
| 157 | HOMEPAGE="http://www.kde.org/" |
185 | HOMEPAGE="http://www.kde.org/" |
| … | |
… | |
| 187 | esac |
215 | esac |
| 188 | |
216 | |
| 189 | # @ECLASS-VARIABLE: QT_MINIMAL |
217 | # @ECLASS-VARIABLE: QT_MINIMAL |
| 190 | # @DESCRIPTION: |
218 | # @DESCRIPTION: |
| 191 | # Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1... |
219 | # Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1... |
| 192 | # 4.6.0 for 4.4 and 4.6.3 for 4.5 and later |
220 | # 4.6.0 for 4.4, 4.6.3 for 4.5, and 4.7.0 for 4.6 and later |
|
|
221 | if slot_is_at_least 4.6 "${KDE_MINIMAL}"; then |
|
|
222 | QT_MINIMAL="${QT_MINIMAL:-4.7.0}" |
| 193 | if slot_is_at_least 4.5 "${KDE_MINIMAL}"; then |
223 | elif slot_is_at_least 4.5 "${KDE_MINIMAL}"; then |
| 194 | QT_MINIMAL="${QT_MINIMAL:-4.6.3}" |
224 | QT_MINIMAL="${QT_MINIMAL:-4.6.3}" |
| 195 | else |
225 | else |
| 196 | QT_MINIMAL="${QT_MINIMAL:-4.6.0}" |
226 | QT_MINIMAL="${QT_MINIMAL:-4.6.0}" |
| 197 | fi |
227 | fi |
|
|
228 | |
|
|
229 | # Declarative dependencies |
|
|
230 | qtdeclarativedepend=" |
|
|
231 | >=x11-libs/qt-declarative-${QT_MINIMAL}:4 |
|
|
232 | " |
|
|
233 | case ${DECLARATIVE_REQUIRED} in |
|
|
234 | always) |
|
|
235 | COMMONDEPEND+=" ${qtdeclarativedepend}" |
|
|
236 | ;; |
|
|
237 | optional) |
|
|
238 | IUSE+=" declarative" |
|
|
239 | COMMONDEPEND+=" declarative? ( ${qtdeclarativedepend} )" |
|
|
240 | ;; |
|
|
241 | *) ;; |
|
|
242 | esac |
|
|
243 | unset qtdeclarativedepend |
|
|
244 | |
|
|
245 | # QtHelp dependencies |
|
|
246 | qthelpdepend=" |
|
|
247 | >=x11-libs/qt-assistant-${QT_MINIMAL}:4 |
|
|
248 | " |
|
|
249 | case ${QTHELP_REQUIRED} in |
|
|
250 | always) |
|
|
251 | COMMONDEPEND+=" ${qthelpdepend}" |
|
|
252 | ;; |
|
|
253 | optional) |
|
|
254 | IUSE+=" qthelp" |
|
|
255 | COMMONDEPEND+=" qthelp? ( ${qthelpdepend} )" |
|
|
256 | ;; |
|
|
257 | esac |
|
|
258 | unset qthelpdepend |
| 198 | |
259 | |
| 199 | # OpenGL dependencies |
260 | # OpenGL dependencies |
| 200 | qtopengldepend=" |
261 | qtopengldepend=" |
| 201 | >=x11-libs/qt-opengl-${QT_MINIMAL}:4 |
262 | >=x11-libs/qt-opengl-${QT_MINIMAL}:4 |
| 202 | " |
263 | " |
| … | |
… | |
| 271 | unset cppuintdepend |
332 | unset cppuintdepend |
| 272 | |
333 | |
| 273 | # KDE dependencies |
334 | # KDE dependencies |
| 274 | # Qt accessibility classes are needed in various places, bug 325461 |
335 | # Qt accessibility classes are needed in various places, bug 325461 |
| 275 | kdecommondepend=" |
336 | kdecommondepend=" |
|
|
337 | dev-lang/perl |
| 276 | >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl] |
338 | >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl] |
| 277 | >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus] |
339 | >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus] |
| 278 | >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde] |
340 | >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde] |
| 279 | >=x11-libs/qt-script-${QT_MINIMAL}:4 |
341 | >=x11-libs/qt-script-${QT_MINIMAL}:4 |
| 280 | >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support] |
342 | >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support] |
| … | |
… | |
| 284 | x11-libs/libXext |
346 | x11-libs/libXext |
| 285 | x11-libs/libXt |
347 | x11-libs/libXt |
| 286 | x11-libs/libXxf86vm |
348 | x11-libs/libXxf86vm |
| 287 | ) |
349 | ) |
| 288 | " |
350 | " |
| 289 | #perl is not needed on host (+ difficult crosscompilation) |
|
|
| 290 | tc-is-cross-compiler || kdecommondepend+=" dev-lang/perl" |
|
|
| 291 | |
351 | |
| 292 | if [[ ${PN} != kdelibs ]]; then |
352 | if [[ ${PN} != kdelibs ]]; then |
| 293 | if [[ ${KDEBASE} = kde-base ]]; then |
|
|
| 294 | kdecommondepend+=" $(add_kdebase_dep kdelibs)" |
353 | kdecommondepend+=" $(add_kdebase_dep kdelibs)" |
| 295 | else |
|
|
| 296 | kdecommondepend+=" |
|
|
| 297 | >=kde-base/kdelibs-${KDE_MINIMAL} |
|
|
| 298 | " |
|
|
| 299 | if [[ ${KDEBASE} = kdevelop ]]; then |
354 | if [[ ${KDEBASE} = kdevelop ]]; then |
| 300 | if [[ ${PN} != kdevplatform ]]; then |
355 | if [[ ${PN} != kdevplatform ]]; then |
| 301 | # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED |
356 | # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED |
| 302 | # @DESCRIPTION: |
357 | # @DESCRIPTION: |
| 303 | # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'. |
358 | # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'. |
| 304 | # Applies to KDEBASE=kdevelop only. |
359 | # Applies to KDEBASE=kdevelop only. |
| 305 | KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}" |
360 | KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}" |
| 306 | case ${KDEVPLATFORM_REQUIRED} in |
361 | case ${KDEVPLATFORM_REQUIRED} in |
| 307 | always) |
362 | always) |
| 308 | kdecommondepend+=" |
363 | kdecommondepend+=" |
| 309 | >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION} |
364 | >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION} |
| 310 | " |
365 | " |
| 311 | ;; |
366 | ;; |
| 312 | *) ;; |
367 | *) ;; |
| 313 | esac |
368 | esac |
| 314 | fi |
|
|
| 315 | fi |
369 | fi |
| 316 | fi |
370 | fi |
| 317 | fi |
371 | fi |
| 318 | kdedepend=" |
372 | kdedepend=" |
| 319 | dev-util/automoc |
373 | dev-util/automoc |
| … | |
… | |
| 321 | !aqua? ( |
375 | !aqua? ( |
| 322 | || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 ) |
376 | || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 ) |
| 323 | x11-proto/xf86vidmodeproto |
377 | x11-proto/xf86vidmodeproto |
| 324 | ) |
378 | ) |
| 325 | " |
379 | " |
| 326 | |
|
|
| 327 | # Handbook handling - dependencies |
|
|
| 328 | if [[ -n ${KDE_HANDBOOK} ]]; then |
|
|
| 329 | kdedepend+=" |
380 | kderdepend="" |
| 330 | handbook? ( |
381 | |
|
|
382 | kdehandbookdepend=" |
| 331 | app-text/docbook-xml-dtd:4.2 |
383 | app-text/docbook-xml-dtd:4.2 |
| 332 | app-text/docbook-xsl-stylesheets |
384 | app-text/docbook-xsl-stylesheets |
| 333 | ) |
385 | " |
| 334 | " |
386 | kdehandbookrdepend=" |
| 335 | if [[ ${PN} != kdelibs ]]; then |
387 | $(add_kdebase_dep kdelibs 'handbook') |
| 336 | if [[ ${KDEBASE} = kde-base ]]; then |
388 | " |
| 337 | PDEPEND+=" handbook? ( $(add_kdebase_dep kdelibs 'handbook') )" |
389 | case ${KDE_HANDBOOK} in |
| 338 | else |
390 | always) |
| 339 | PDEPEND+=" handbook? ( >=kde-base/kdelibs-${KDE_MINIMAL}[handbook] )" |
391 | kdedepend+=" ${kdehandbookdepend}" |
| 340 | fi |
392 | [[ ${PN} != kdelibs ]] && kderdepend+=" ${kdehandbookrdepend}" |
| 341 | elif [[ ${PN} != khelpcenter ]]; then |
393 | ;; |
| 342 | if [[ ${KDEBASE} = kde-base ]]; then |
394 | optional) |
| 343 | PDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter 'handbook') )" |
395 | IUSE+=" +handbook" |
| 344 | else |
396 | kdedepend+=" handbook? ( ${kdehandbookdepend} )" |
| 345 | PDEPEND+=" handbook? ( >=kde-base/khelpcenter-${KDE_MINIMAL}[handbook] )" |
397 | [[ ${PN} != kdelibs ]] && kderdepend+=" handbook? ( ${kdehandbookrdepend} )" |
| 346 | fi |
398 | ;; |
| 347 | fi |
399 | *) ;; |
| 348 | fi |
400 | esac |
|
|
401 | unset kdehandbookdepend kdehandbookrdepend |
| 349 | |
402 | |
| 350 | case ${KDE_REQUIRED} in |
403 | case ${KDE_REQUIRED} in |
| 351 | always) |
404 | always) |
| 352 | IUSE+=" aqua" |
405 | IUSE+=" aqua" |
| 353 | COMMONDEPEND+=" ${kdecommondepend}" |
406 | [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}" |
| 354 | DEPEND+=" ${kdedepend}" |
407 | [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}" |
|
|
408 | [[ -n ${kderdepend} ]] && RDEPEND+=" ${kderdepend}" |
| 355 | ;; |
409 | ;; |
| 356 | optional) |
410 | optional) |
| 357 | IUSE+=" aqua kde" |
411 | IUSE+=" aqua kde" |
| 358 | COMMONDEPEND+=" kde? ( ${kdecommondepend} )" |
412 | [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" kde? ( ${kdecommondepend} )" |
| 359 | DEPEND+=" kde? ( ${kdedepend} )" |
413 | [[ -n ${kdedepend} ]] && DEPEND+=" kde? ( ${kdedepend} )" |
|
|
414 | [[ -n ${kderdepend} ]] && RDEPEND+=" kde? ( ${kderdepend} )" |
| 360 | ;; |
415 | ;; |
| 361 | *) ;; |
416 | *) ;; |
| 362 | esac |
417 | esac |
| 363 | |
418 | |
| 364 | unset kdecommondepend kdedepend |
419 | unset kdecommondepend kdedepend kderdepend |
| 365 | |
420 | |
| 366 | debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}" |
421 | debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}" |
| 367 | debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}" |
422 | debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}" |
| 368 | debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}" |
423 | debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}" |
| 369 | debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: PDEPEND is ${PDEPEND}" |
|
|
| 370 | |
424 | |
| 371 | # Accumulate dependencies set by this eclass |
425 | # Accumulate dependencies set by this eclass |
| 372 | DEPEND+=" ${COMMONDEPEND}" |
426 | DEPEND+=" ${COMMONDEPEND}" |
| 373 | RDEPEND+=" ${COMMONDEPEND}" |
427 | RDEPEND+=" ${COMMONDEPEND}" |
| 374 | unset COMMONDEPEND |
428 | unset COMMONDEPEND |
| … | |
… | |
| 456 | if [[ -z ${KMNOMODULE} ]] && [[ -z ${KMMODULE} ]]; then |
510 | if [[ -z ${KMNOMODULE} ]] && [[ -z ${KMMODULE} ]]; then |
| 457 | KMMODULE="${PN}" |
511 | KMMODULE="${PN}" |
| 458 | fi |
512 | fi |
| 459 | case ${KDEBASE} in |
513 | case ${KDEBASE} in |
| 460 | kdevelop) |
514 | kdevelop) |
| 461 | EGIT_REPO_URI="git://gitorious.org/${KMNAME}/${KMMODULE}.git" |
515 | EGIT_REPO_URI="git://git.kde.org/${KMMODULE}" |
| 462 | ;; |
516 | ;; |
| 463 | esac |
517 | esac |
| 464 | fi |
518 | fi |
| 465 | ;; |
519 | ;; |
| 466 | *) |
520 | *) |
| … | |
… | |
| 477 | fi |
531 | fi |
| 478 | _kmname_pv="${_kmname}-${PV}" |
532 | _kmname_pv="${_kmname}-${PV}" |
| 479 | case ${KDEBASE} in |
533 | case ${KDEBASE} in |
| 480 | kde-base) |
534 | kde-base) |
| 481 | case ${PV} in |
535 | case ${PV} in |
| 482 | 4.[45].8[05] | 4.[45].9[02568]) |
536 | 4.[456].8[05] | 4.[456].9[023568]) |
| 483 | # Normally packed unstable releases |
537 | # Unstable KDE SC releases |
| 484 | SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;; |
538 | SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" |
| 485 | 4.[45].[6-9]*) |
|
|
| 486 | # Repacked tarballs: need to depend on xz-utils to ensure that they can be unpacked |
|
|
| 487 | SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/src/${_kmname_pv}.tar.xz" |
|
|
| 488 | DEPEND+=" app-arch/xz-utils" |
|
|
| 489 | ;; |
539 | ;; |
|
|
540 | 4.4.6 | 4.4.7 | 4.4.8) |
|
|
541 | # Only kdepim here |
|
|
542 | SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" |
|
|
543 | ;; |
|
|
544 | *) |
|
|
545 | # Stable KDE SC releases |
| 490 | *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; |
546 | SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" |
|
|
547 | ;; |
| 491 | esac |
548 | esac |
| 492 | ;; |
549 | ;; |
| 493 | koffice) |
550 | koffice) |
| 494 | case ${PV} in |
551 | case ${PV} in |
| 495 | 2.1.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;; |
552 | 2.1.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;; |
| … | |
… | |
| 654 | |
711 | |
| 655 | # Inject library dependencies |
712 | # Inject library dependencies |
| 656 | if [[ -n ${KMLOADLIBS} ]] ; then |
713 | if [[ -n ${KMLOADLIBS} ]] ; then |
| 657 | load_library_dependencies |
714 | load_library_dependencies |
| 658 | fi |
715 | fi |
|
|
716 | |
|
|
717 | # Replace KDE4Workspace library targets |
|
|
718 | find "${S}" -name CMakeLists.txt \ |
|
|
719 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_TASKMANAGER_(LIBRARY|LIBS)\}/taskmanager/g' {} + \ |
|
|
720 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KWORKSPACE_(LIBRARY|LIBS)\}/kworkspace/g' {} + \ |
|
|
721 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROLIFACES_(LIBRARY|LIBS)\}/solidcontrolifaces/g' {} + \ |
|
|
722 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROL_(LIBRARY|LIBS)\}/solidcontrol/g' {} + \ |
|
|
723 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_PROCESSUI_(LIBRARY|LIBS)\}/processui/g' {} + \ |
|
|
724 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_LSOFUI_(LIBRARY|LIBS)\}/lsofui/g' {} + \ |
|
|
725 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_PLASMACLOCK_(LIBRARY|LIBS)\}/plasmaclock/g' {} + \ |
|
|
726 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERYCLIENT_(LIBRARY|LIBS)\}/nepomukqueryclient/g' {} + \ |
|
|
727 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERY_(LIBRARY|LIBS)\}/nepomukquery/g' {} + \ |
|
|
728 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KSCREENSAVER_(LIBRARY|LIBS)\}/kscreensaver/g' {} + \ |
|
|
729 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_WEATHERION_(LIBRARY|LIBS)\}/weather_ion/g' {} + \ |
|
|
730 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KWINEFFECTS_(LIBRARY|LIBS)\}/kwineffects/g' {} + \ |
|
|
731 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KDECORATIONS_(LIBRARY|LIBS)\}/kdecorations/g' {} + \ |
|
|
732 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KSGRD_(LIBRARY|LIBS)\}/ksgrd/g' {} + \ |
|
|
733 | -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KEPHAL_(LIBRARY|LIBS)\}/kephal/g' {} + \ |
|
|
734 | || die 'failed to replace KDE4Workspace library targets' |
|
|
735 | |
|
|
736 | # Hack for manuals relying on outdated DTD, only outside kde-base/koffice/... |
|
|
737 | if [[ -z ${KDEBASE} ]]; then |
|
|
738 | find "${S}" -name "*.docbook" \ |
|
|
739 | -exec sed -i -r \ |
|
|
740 | -e 's:-//KDE//DTD DocBook XML V4\.1(\..)?-Based Variant V1\.[01]//EN:-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN:g' {} + \ |
|
|
741 | || die 'failed to fix DocBook variant version' |
|
|
742 | fi |
| 659 | } |
743 | } |
| 660 | |
744 | |
| 661 | # @FUNCTION: kde4-base_src_configure |
745 | # @FUNCTION: kde4-base_src_configure |
| 662 | # @DESCRIPTION: |
746 | # @DESCRIPTION: |
| 663 | # Function for configuring the build of KDE4 applications. |
747 | # Function for configuring the build of KDE4 applications. |
| … | |
… | |
| 746 | # Override this value, set in kde4-base_src_configure() |
830 | # Override this value, set in kde4-base_src_configure() |
| 747 | mycmakeargs+=(-DKDE4_BUILD_TESTS=ON) |
831 | mycmakeargs+=(-DKDE4_BUILD_TESTS=ON) |
| 748 | cmake-utils_src_configure |
832 | cmake-utils_src_configure |
| 749 | kde4-base_src_compile |
833 | kde4-base_src_compile |
| 750 | |
834 | |
|
|
835 | if [[ ${VIRTUALX_REQUIRED} == always ]] || |
|
|
836 | ( [[ ${VIRTUALX_REQUIRED} != manual ]] && use test ); then |
|
|
837 | |
|
|
838 | if [[ ${maketype} ]]; then |
|
|
839 | # surprise- we are already INSIDE virtualmake!!! |
|
|
840 | ewarn "QA Notice: This version of kde4-base.eclass includes the virtualx functionality." |
|
|
841 | ewarn " You may NOT set maketype or call virtualmake from the ebuild. Applying workaround." |
|
|
842 | cmake-utils_src_test |
|
|
843 | else |
|
|
844 | export maketype="cmake-utils_src_test" |
|
|
845 | virtualmake |
|
|
846 | fi |
|
|
847 | else |
| 751 | cmake-utils_src_test |
848 | cmake-utils_src_test |
|
|
849 | fi |
| 752 | } |
850 | } |
| 753 | |
851 | |
| 754 | # @FUNCTION: kde4-base_src_install |
852 | # @FUNCTION: kde4-base_src_install |
| 755 | # @DESCRIPTION: |
853 | # @DESCRIPTION: |
| 756 | # Function for installing KDE4 applications. |
854 | # Function for installing KDE4 applications. |