/[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.93 Revision 1.94
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.93 2011/05/23 22:56:36 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.94 2011/06/06 17:51:26 abcd 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
131# @DESCRIPTION: 131# @DESCRIPTION:
132# Is qt-multimedia required? Possible values are 'always', 'optional' and 'never'. 132# Is qt-multimedia required? Possible values are 'always', 'optional' and 'never'.
133# This variable must be set before inheriting any eclasses. Defaults to 'never'. 133# This variable must be set before inheriting any eclasses. Defaults to 'never'.
134MULTIMEDIA_REQUIRED="${MULTIMEDIA_REQUIRED:-never}" 134MULTIMEDIA_REQUIRED="${MULTIMEDIA_REQUIRED:-never}"
135 135
136# @ECLASS-VARIABLE: WEBKIT_REQUIRED
137# @DESCRIPTION:
138# Is qt-webkit requred? Possible values are 'always', 'optional' and 'never'.
139# This variable must be set before inheriting any eclasses. Defaults to 'never'.
140WEBKIT_REQUIRED="${WEBKIT_REQUIRED:-never}"
141
142# @ECLASS-VARIABLE: CPPUNIT_REQUIRED 136# @ECLASS-VARIABLE: CPPUNIT_REQUIRED
143# @DESCRIPTION: 137# @DESCRIPTION:
144# Is cppunit required for tests? Possible values are 'always', 'optional' and 'never'. 138# Is cppunit required for tests? Possible values are 'always', 'optional' and 'never'.
145# This variable must be set before inheriting any eclasses. Defaults to 'never'. 139# This variable must be set before inheriting any eclasses. Defaults to 'never'.
146CPPUNIT_REQUIRED="${CPPUNIT_REQUIRED:-never}" 140CPPUNIT_REQUIRED="${CPPUNIT_REQUIRED:-never}"
278 ;; 272 ;;
279 *) ;; 273 *) ;;
280esac 274esac
281unset qtmultimediadepend 275unset qtmultimediadepend
282 276
283# WebKit dependencies
284case ${KDE_REQUIRED} in
285 always)
286 qtwebkitusedeps="[kde]"
287 ;;
288 optional)
289 qtwebkitusedeps="[kde?]"
290 ;;
291 *) ;;
292esac
293qtwebkitdepend="
294 >=x11-libs/qt-webkit-${QT_MINIMAL}:4${qtwebkitusedeps}
295"
296unset qtwebkitusedeps
297case ${WEBKIT_REQUIRED} in
298 always)
299 COMMONDEPEND+=" ${qtwebkitdepend}"
300 ;;
301 optional)
302 IUSE+=" webkit"
303 COMMONDEPEND+=" webkit? ( ${qtwebkitdepend} )"
304 ;;
305 *) ;;
306esac
307unset qtwebkitdepend
308
309# CppUnit dependencies 277# CppUnit dependencies
310cppuintdepend=" 278cppuintdepend="
311 dev-util/cppunit 279 dev-util/cppunit
312" 280"
313case ${CPPUNIT_REQUIRED} in 281case ${CPPUNIT_REQUIRED} in
320 ;; 288 ;;
321 *) ;; 289 *) ;;
322esac 290esac
323unset cppuintdepend 291unset cppuintdepend
324 292
293
294# WebKit use dependencies
295case ${KDE_REQUIRED} in
296 always)
297 qtwebkitusedeps="[kde]"
298 ;;
299 optional)
300 qtwebkitusedeps="[kde?]"
301 ;;
302 *) ;;
303esac
325# KDE dependencies 304# KDE dependencies
326# Qt accessibility classes are needed in various places, bug 325461 305# Qt accessibility classes are needed in various places, bug 325461
327kdecommondepend=" 306kdecommondepend="
328 dev-lang/perl 307 dev-lang/perl
329 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl] 308 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl]
331 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde] 310 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde]
332 >=x11-libs/qt-script-${QT_MINIMAL}:4 311 >=x11-libs/qt-script-${QT_MINIMAL}:4
333 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support] 312 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support]
334 >=x11-libs/qt-svg-${QT_MINIMAL}:4 313 >=x11-libs/qt-svg-${QT_MINIMAL}:4
335 >=x11-libs/qt-test-${QT_MINIMAL}:4 314 >=x11-libs/qt-test-${QT_MINIMAL}:4
315 >=x11-libs/qt-webkit-${QT_MINIMAL}:4${qtwebkitusedeps}
336 !aqua? ( 316 !aqua? (
337 x11-libs/libXext 317 x11-libs/libXext
338 x11-libs/libXt 318 x11-libs/libXt
339 x11-libs/libXxf86vm 319 x11-libs/libXxf86vm
340 x11-libs/libXcomposite 320 x11-libs/libXcomposite
599 case ${PV} in 579 case ${PV} in
600 9999*) ;; 580 9999*) ;;
601 *) 581 *)
602 # set EGIT_BRANCH and EGIT_COMMIT to ${SLOT} 582 # set EGIT_BRANCH and EGIT_COMMIT to ${SLOT}
603 case ${_kmname} in 583 case ${_kmname} in
604 kdeplasma-addons | kdepim | kdepim-runtime | kdepimlibs) 584 kdeplasma-addons | kdepim | kdepim-runtime | kdepimlibs | okular)
605 EGIT_BRANCH="${SLOT}" 585 EGIT_BRANCH="${SLOT}"
586 ;;
587 marble)
588 EGIT_BRANCH="kde-${SLOT}"
606 ;; 589 ;;
607 *) EGIT_BRANCH="KDE/${SLOT}" ;; 590 *) EGIT_BRANCH="KDE/${SLOT}" ;;
608 esac 591 esac
609 ;; 592 ;;
610 esac 593 esac

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.94

  ViewVC Help
Powered by ViewVC 1.1.20