| 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.64 2010/06/26 01:33:21 reavertm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.65 2010/06/26 16:02:18 reavertm 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 |
| … | |
… | |
| 73 | koffice) |
73 | koffice) |
| 74 | SLOT="2" |
74 | SLOT="2" |
| 75 | ;; |
75 | ;; |
| 76 | kdevelop) |
76 | kdevelop) |
| 77 | if [[ ${BUILD_TYPE} = live ]]; then |
77 | if [[ ${BUILD_TYPE} = live ]]; then |
| 78 | KDEVELOP_VERSION="9999" |
78 | # @ECLASS-VARIABLE: KDEVELOP_VERSION |
| 79 | KDEVPLATFORM_VERSION="9999" |
79 | # @DESCRIPTION: |
|
|
80 | # Specifies KDevelop version. Default is 4.0.0 for tagged packages and 9999 for live packages. |
|
|
81 | # Applies to KDEBASE=kdevelop only. |
|
|
82 | KDEVELOP_VERSION="${KDEVELOP_VERSION:-9999}" |
|
|
83 | # @ECLASS-VARIABLE: KDEVPLATFORM_VERSION |
|
|
84 | # @DESCRIPTION: |
|
|
85 | # Specifies KDevplatform version. Default is 1.0.0 for tagged packages and 9999 for live packages. |
|
|
86 | # Applies to KDEBASE=kdevelop only. |
|
|
87 | KDEVPLATFORM_VERSION="${KDEVPLATFORM_VERSION:-9999}" |
| 80 | else |
88 | else |
| 81 | case ${PN} in |
89 | case ${PN} in |
| 82 | kdevelop|quanta) |
90 | kdevelop|quanta) |
| 83 | KDEVELOP_VERSION=${PV} |
91 | KDEVELOP_VERSION=${PV} |
| 84 | KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)" |
92 | KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)" |
| 85 | ;; |
93 | ;; |
| 86 | *) |
94 | kdevplatform) |
| 87 | KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)" |
95 | KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)" |
| 88 | KDEVPLATFORM_VERSION=${PV} |
96 | KDEVPLATFORM_VERSION=${PV} |
|
|
97 | ;; |
|
|
98 | *) |
|
|
99 | KDEVELOP_VERSION="${KDEVELOP_VERSION:-4.0.0}" |
|
|
100 | KDEVPLATFORM_VERSION="${KDEVPLATFORM_VERSION:-1.0.0}" |
| 89 | esac |
101 | esac |
| 90 | fi |
102 | fi |
| 91 | SLOT="4" |
103 | SLOT="4" |
| 92 | ;; |
104 | ;; |
| 93 | esac |
105 | esac |
| … | |
… | |
| 257 | *) ;; |
269 | *) ;; |
| 258 | esac |
270 | esac |
| 259 | unset cppuintdepend |
271 | unset cppuintdepend |
| 260 | |
272 | |
| 261 | # KDE dependencies |
273 | # KDE dependencies |
|
|
274 | # Qt accessibility classes are needed in various places, bug 325461 |
| 262 | kdecommondepend=" |
275 | kdecommondepend=" |
| 263 | >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl] |
276 | >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl] |
| 264 | >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus] |
277 | >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus] |
| 265 | >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde] |
278 | >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde] |
| 266 | >=x11-libs/qt-script-${QT_MINIMAL}:4 |
279 | >=x11-libs/qt-script-${QT_MINIMAL}:4 |
| … | |
… | |
| 286 | kdecommondepend+=" |
299 | kdecommondepend+=" |
| 287 | >=kde-base/kdelibs-${KDE_MINIMAL} |
300 | >=kde-base/kdelibs-${KDE_MINIMAL} |
| 288 | " |
301 | " |
| 289 | if [[ ${KDEBASE} = kdevelop ]]; then |
302 | if [[ ${KDEBASE} = kdevelop ]]; then |
| 290 | if [[ ${PN} != kdevplatform ]]; then |
303 | if [[ ${PN} != kdevplatform ]]; then |
|
|
304 | # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED |
|
|
305 | # @DESCRIPTION: |
|
|
306 | # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'. |
|
|
307 | # Applies to KDEBASE=kdevelop only. |
|
|
308 | KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}" |
|
|
309 | case ${KDEVPLATFORM_REQUIRED} in |
|
|
310 | always) |
| 291 | kdecommondepend+=" |
311 | kdecommondepend+=" |
| 292 | >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION} |
312 | >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION} |
| 293 | " |
313 | " |
|
|
314 | ;; |
|
|
315 | *) ;; |
|
|
316 | esac |
| 294 | fi |
317 | fi |
| 295 | fi |
318 | fi |
| 296 | fi |
319 | fi |
| 297 | fi |
320 | fi |
| 298 | kdedepend=" |
321 | kdedepend=" |