/[gentoo-x86]/eclass/kde4-base.eclass
Gentoo

Diff of /eclass/kde4-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.122 Revision 1.124
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 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.122 2013/02/02 16:58:00 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.124 2013/03/03 00:22:56 pesa 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
9# @DESCRIPTION: 9# @DESCRIPTION:
10# The kde4-base.eclass provides support for building KDE4 based ebuilds 10# The kde4-base.eclass provides support for building KDE4 based ebuilds
11# and KDE4 applications. 11# and KDE4 applications.
12# 12#
13# NOTE: KDE 4 ebuilds currently support EAPI "3". This will be reviewed 13# NOTE: KDE 4 ebuilds currently support EAPIs 3, 4, and 5. This will be
14# over time as new EAPI versions are approved. 14# reviewed over time as new EAPI versions are approved.
15 15
16# @ECLASS-VARIABLE: KDE_SELINUX_MODULE 16# @ECLASS-VARIABLE: KDE_SELINUX_MODULE
17# @DESCRIPTION: 17# @DESCRIPTION:
18# If set to "none", do nothing. 18# If set to "none", do nothing.
19# For any other value, add selinux to IUSE, and depending on that useflag 19# For any other value, add selinux to IUSE, and depending on that useflag
104unset buildsystem_eclass 104unset buildsystem_eclass
105unset export_fns 105unset export_fns
106 106
107# @ECLASS-VARIABLE: DECLARATIVE_REQUIRED 107# @ECLASS-VARIABLE: DECLARATIVE_REQUIRED
108# @DESCRIPTION: 108# @DESCRIPTION:
109# Is qt-declarative required? Possible values are 'always', 'optional' and 'never'. 109# Is qtdeclarative required? Possible values are 'always', 'optional' and 'never'.
110# This variable must be set before inheriting any eclasses. Defaults to 'never'. 110# This variable must be set before inheriting any eclasses. Defaults to 'never'.
111DECLARATIVE_REQUIRED="${DECLARATIVE_REQUIRED:-never}" 111DECLARATIVE_REQUIRED="${DECLARATIVE_REQUIRED:-never}"
112 112
113# @ECLASS-VARIABLE: QTHELP_REQUIRED 113# @ECLASS-VARIABLE: QTHELP_REQUIRED
114# @DESCRIPTION: 114# @DESCRIPTION:
115# Is qt-assistant required? Possible values are 'always', 'optional' and 'never'. 115# Is qthelp required? Possible values are 'always', 'optional' and 'never'.
116# This variable must be set before inheriting any eclasses. Defaults to 'never'. 116# This variable must be set before inheriting any eclasses. Defaults to 'never'.
117QTHELP_REQUIRED="${QTHELP_REQUIRED:-never}" 117QTHELP_REQUIRED="${QTHELP_REQUIRED:-never}"
118 118
119# @ECLASS-VARIABLE: OPENGL_REQUIRED 119# @ECLASS-VARIABLE: OPENGL_REQUIRED
120# @DESCRIPTION: 120# @DESCRIPTION:
121# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'. 121# Is qtopengl required? Possible values are 'always', 'optional' and 'never'.
122# This variable must be set before inheriting any eclasses. Defaults to 'never'. 122# This variable must be set before inheriting any eclasses. Defaults to 'never'.
123OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}" 123OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}"
124 124
125# @ECLASS-VARIABLE: MULTIMEDIA_REQUIRED 125# @ECLASS-VARIABLE: MULTIMEDIA_REQUIRED
126# @DESCRIPTION: 126# @DESCRIPTION:
127# Is qt-multimedia required? Possible values are 'always', 'optional' and 'never'. 127# Is qtmultimedia required? Possible values are 'always', 'optional' and 'never'.
128# This variable must be set before inheriting any eclasses. Defaults to 'never'. 128# This variable must be set before inheriting any eclasses. Defaults to 'never'.
129MULTIMEDIA_REQUIRED="${MULTIMEDIA_REQUIRED:-never}" 129MULTIMEDIA_REQUIRED="${MULTIMEDIA_REQUIRED:-never}"
130 130
131# @ECLASS-VARIABLE: CPPUNIT_REQUIRED 131# @ECLASS-VARIABLE: CPPUNIT_REQUIRED
132# @DESCRIPTION: 132# @DESCRIPTION:
197 QT_MINIMAL="${QT_MINIMAL:-4.7.4}" 197 QT_MINIMAL="${QT_MINIMAL:-4.7.4}"
198fi 198fi
199 199
200# Declarative dependencies 200# Declarative dependencies
201qtdeclarativedepend=" 201qtdeclarativedepend="
202 >=x11-libs/qt-declarative-${QT_MINIMAL}:4 202 >=dev-qt/qtdeclarative-${QT_MINIMAL}:4
203" 203"
204case ${DECLARATIVE_REQUIRED} in 204case ${DECLARATIVE_REQUIRED} in
205 always) 205 always)
206 COMMONDEPEND+=" ${qtdeclarativedepend}" 206 COMMONDEPEND+=" ${qtdeclarativedepend}"
207 ;; 207 ;;
213esac 213esac
214unset qtdeclarativedepend 214unset qtdeclarativedepend
215 215
216# QtHelp dependencies 216# QtHelp dependencies
217qthelpdepend=" 217qthelpdepend="
218 >=x11-libs/qt-assistant-${QT_MINIMAL}:4 218 >=dev-qt/qthelp-${QT_MINIMAL}:4
219" 219"
220case ${QTHELP_REQUIRED} in 220case ${QTHELP_REQUIRED} in
221 always) 221 always)
222 COMMONDEPEND+=" ${qthelpdepend}" 222 COMMONDEPEND+=" ${qthelpdepend}"
223 ;; 223 ;;
228esac 228esac
229unset qthelpdepend 229unset qthelpdepend
230 230
231# OpenGL dependencies 231# OpenGL dependencies
232qtopengldepend=" 232qtopengldepend="
233 >=x11-libs/qt-opengl-${QT_MINIMAL}:4 233 >=dev-qt/qtopengl-${QT_MINIMAL}:4
234" 234"
235case ${OPENGL_REQUIRED} in 235case ${OPENGL_REQUIRED} in
236 always) 236 always)
237 COMMONDEPEND+=" ${qtopengldepend}" 237 COMMONDEPEND+=" ${qtopengldepend}"
238 ;; 238 ;;
244esac 244esac
245unset qtopengldepend 245unset qtopengldepend
246 246
247# MultiMedia dependencies 247# MultiMedia dependencies
248qtmultimediadepend=" 248qtmultimediadepend="
249 >=x11-libs/qt-multimedia-${QT_MINIMAL}:4 249 >=dev-qt/qtmultimedia-${QT_MINIMAL}:4
250" 250"
251case ${MULTIMEDIA_REQUIRED} in 251case ${MULTIMEDIA_REQUIRED} in
252 always) 252 always)
253 COMMONDEPEND+=" ${qtmultimediadepend}" 253 COMMONDEPEND+=" ${qtmultimediadepend}"
254 ;; 254 ;;
278 278
279# KDE dependencies 279# KDE dependencies
280# Qt accessibility classes are needed in various places, bug 325461 280# Qt accessibility classes are needed in various places, bug 325461
281kdecommondepend=" 281kdecommondepend="
282 dev-lang/perl 282 dev-lang/perl
283 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl]
284 >=x11-libs/qt-dbus-${QT_MINIMAL}:4
285 >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus]
286 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility] 283 >=dev-qt/qt3support-${QT_MINIMAL}:4[accessibility]
284 >=dev-qt/qtcore-${QT_MINIMAL}:4[qt3support,ssl]
285 >=dev-qt/qtdbus-${QT_MINIMAL}:4
286 >=dev-qt/qtgui-${QT_MINIMAL}:4[accessibility,dbus]
287 >=x11-libs/qt-script-${QT_MINIMAL}:4 287 >=dev-qt/qtscript-${QT_MINIMAL}:4
288 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support] 288 >=dev-qt/qtsql-${QT_MINIMAL}:4[qt3support]
289 >=x11-libs/qt-svg-${QT_MINIMAL}:4 289 >=dev-qt/qtsvg-${QT_MINIMAL}:4
290 >=x11-libs/qt-test-${QT_MINIMAL}:4 290 >=dev-qt/qttest-${QT_MINIMAL}:4
291 >=x11-libs/qt-webkit-${QT_MINIMAL}:4 291 >=dev-qt/qtwebkit-${QT_MINIMAL}:4
292 !aqua? ( 292 !aqua? (
293 x11-libs/libXext 293 x11-libs/libXext
294 x11-libs/libXt 294 x11-libs/libXt
295 x11-libs/libXxf86vm 295 x11-libs/libXxf86vm
296 x11-libs/libXcomposite 296 x11-libs/libXcomposite
376 IUSE+=" selinux" 376 IUSE+=" selinux"
377 kdecommondepend+=" selinux? ( sec-policy/selinux-${KDE_SELINUX_MODULE} )" 377 kdecommondepend+=" selinux? ( sec-policy/selinux-${KDE_SELINUX_MODULE} )"
378 ;; 378 ;;
379esac 379esac
380 380
381# We always need the aqua useflag because otherwise we cannot = refer to it inside
382# add_kdebase_dep. This was always kind of a bug, but came to light with EAPI=5
383# (where referring to a use flag not in IUSE masks the ebuild).
384# The only alternative would be to prohibit using add_kdebase_dep if KDE_REQUIRED=never
385IUSE+=" aqua"
386
381case ${KDE_REQUIRED} in 387case ${KDE_REQUIRED} in
382 always) 388 always)
383 IUSE+=" aqua"
384 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}" 389 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}"
385 [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}" 390 [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}"
386 [[ -n ${kderdepend} ]] && RDEPEND+=" ${kderdepend}" 391 [[ -n ${kderdepend} ]] && RDEPEND+=" ${kderdepend}"
387 ;; 392 ;;
388 optional) 393 optional)
389 IUSE+=" aqua kde" 394 IUSE+=" kde"
390 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" kde? ( ${kdecommondepend} )" 395 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" kde? ( ${kdecommondepend} )"
391 [[ -n ${kdedepend} ]] && DEPEND+=" kde? ( ${kdedepend} )" 396 [[ -n ${kdedepend} ]] && DEPEND+=" kde? ( ${kdedepend} )"
392 [[ -n ${kderdepend} ]] && RDEPEND+=" kde? ( ${kderdepend} )" 397 [[ -n ${kderdepend} ]] && RDEPEND+=" kde? ( ${kderdepend} )"
393 ;; 398 ;;
394 *) ;; 399 *) ;;
433 case ${PV} in 438 case ${PV} in
434 4.4.11.1) 439 4.4.11.1)
435 # KDEPIM 4.4, special case 440 # KDEPIM 4.4, special case
436 # TODO: Remove this part when KDEPIM 4.4 gets out of the tree 441 # TODO: Remove this part when KDEPIM 4.4 gets out of the tree
437 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" ;; 442 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" ;;
438 4.[89].8[05] | 4.[89].9[0235678]) 443 4.?.[6-9]? | 4.??.[6-9]?)
439 # Unstable KDE SC releases 444 # Unstable KDE SC releases
440 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;; 445 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;;
441 4.[1234567].[12345]) 446 4.[1-7].[12345])
442 # Stable KDE SC with old .bz2 support 447 # Stable KDE SC with old .bz2 support
443 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 448 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
444 *) 449 *)
445 # Stable KDE SC releases 450 # Stable KDE SC releases
446 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;; 451 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;;
447 esac 452 esac
448 ;; 453 ;;
449 kdevelop|kdevelop-php*|kdevplatform) 454 kdevelop|kdevelop-php*|kdevplatform)
450 case ${KDEVELOP_VERSION} in 455 case ${KDEVELOP_VERSION} in
451 4.[12].[6-9]*) SRC_URI="mirror://kde/unstable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;; 456 4.[123].[6-9]*) SRC_URI="mirror://kde/unstable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;;
452 *) SRC_URI="mirror://kde/stable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;; 457 *) SRC_URI="mirror://kde/stable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;;
453 esac 458 esac
454 ;; 459 ;;
455 esac 460 esac
456} 461}

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.124

  ViewVC Help
Powered by ViewVC 1.1.20