/[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.69 Revision 1.73
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.73 2010/09/13 21:47:37 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
60case ${KDEBASE} in 60case ${KDEBASE} in
61 kde-base) 61 kde-base)
62 # Determine SLOT from PVs 62 # Determine SLOT from PVs
63 case ${PV} in 63 case ${PV} in
64 *.9999*) SLOT="${PV/.9999*/}" ;; # stable live 64 *.9999*) SLOT="${PV/.9999*/}" ;; # stable live
65 4.6* | 4.5.[6-9]*) SLOT="4.6" ;; 65 4.6* | 4.5.[6-9][0-9]*) SLOT="4.6" ;;
66 4.5* | 4.4.[6-9]*) SLOT="4.5" ;; 66 4.5* | 4.4.[6-9][0-9]*) SLOT="4.5" ;;
67 4.4* | 4.3.[6-9]*) SLOT="4.4" ;; 67 4.4* | 4.3.[6-9][0-9]*) SLOT="4.4" ;;
68 9999*) SLOT="live" ;; # regular live 68 9999*) SLOT="live" ;; # regular live
69 *) die "Unsupported ${PV}" ;; 69 *) die "Unsupported ${PV}" ;;
70 esac 70 esac
71 KDE_MINIMAL="${SLOT}" 71 KDE_MINIMAL="${SLOT}"
72 ;; 72 ;;
271unset cppuintdepend 271unset cppuintdepend
272 272
273# KDE dependencies 273# KDE dependencies
274# Qt accessibility classes are needed in various places, bug 325461 274# Qt accessibility classes are needed in various places, bug 325461
275kdecommondepend=" 275kdecommondepend="
276 dev-lang/perl
276 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl] 277 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl]
277 >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus] 278 >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus]
278 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde] 279 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde]
279 >=x11-libs/qt-script-${QT_MINIMAL}:4 280 >=x11-libs/qt-script-${QT_MINIMAL}:4
280 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support] 281 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support]
284 x11-libs/libXext 285 x11-libs/libXext
285 x11-libs/libXt 286 x11-libs/libXt
286 x11-libs/libXxf86vm 287 x11-libs/libXxf86vm
287 ) 288 )
288" 289"
289#perl is not needed on host (+ difficult crosscompilation)
290tc-is-cross-compiler || kdecommondepend+=" dev-lang/perl"
291 290
292if [[ ${PN} != kdelibs ]]; then 291if [[ ${PN} != kdelibs ]]; then
293 if [[ ${KDEBASE} = kde-base ]]; then
294 kdecommondepend+=" $(add_kdebase_dep kdelibs)" 292 kdecommondepend+=" $(add_kdebase_dep kdelibs)"
295 else
296 kdecommondepend+="
297 >=kde-base/kdelibs-${KDE_MINIMAL}
298 "
299 if [[ ${KDEBASE} = kdevelop ]]; then 293 if [[ ${KDEBASE} = kdevelop ]]; then
300 if [[ ${PN} != kdevplatform ]]; then 294 if [[ ${PN} != kdevplatform ]]; then
301 # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED 295 # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED
302 # @DESCRIPTION: 296 # @DESCRIPTION:
303 # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'. 297 # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'.
304 # Applies to KDEBASE=kdevelop only. 298 # Applies to KDEBASE=kdevelop only.
305 KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}" 299 KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}"
306 case ${KDEVPLATFORM_REQUIRED} in 300 case ${KDEVPLATFORM_REQUIRED} in
307 always) 301 always)
308 kdecommondepend+=" 302 kdecommondepend+="
309 >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION} 303 >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION}
310 " 304 "
311 ;; 305 ;;
312 *) ;; 306 *) ;;
313 esac 307 esac
314 fi
315 fi 308 fi
316 fi 309 fi
317fi 310fi
318kdedepend=" 311kdedepend="
319 dev-util/automoc 312 dev-util/automoc
321 !aqua? ( 314 !aqua? (
322 || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 ) 315 || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 )
323 x11-proto/xf86vidmodeproto 316 x11-proto/xf86vidmodeproto
324 ) 317 )
325" 318"
319kderdepend=""
326 320
327# Handbook handling - dependencies 321# Handbook handling - dependencies
328if [[ -n ${KDE_HANDBOOK} ]]; then 322if [[ -n ${KDE_HANDBOOK} ]]; then
329 kdedepend+=" 323 kdedepend+="
330 handbook? ( 324 handbook? (
331 app-text/docbook-xml-dtd:4.2 325 app-text/docbook-xml-dtd:4.2
332 app-text/docbook-xsl-stylesheets 326 app-text/docbook-xsl-stylesheets
333 ) 327 )
334 " 328 "
335 if [[ ${PN} != kdelibs ]]; then 329 [[ ${PN} != kdelibs ]] && kderdepend+=" handbook? ( $(add_kdebase_dep khelpcenter) )"
336 if [[ ${KDEBASE} = kde-base ]]; then
337 PDEPEND+=" handbook? ( $(add_kdebase_dep kdelibs 'handbook') )"
338 else
339 PDEPEND+=" handbook? ( >=kde-base/kdelibs-${KDE_MINIMAL}[handbook] )"
340 fi
341 elif [[ ${PN} != khelpcenter ]]; then
342 if [[ ${KDEBASE} = kde-base ]]; then
343 PDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter 'handbook') )"
344 else
345 PDEPEND+=" handbook? ( >=kde-base/khelpcenter-${KDE_MINIMAL}[handbook] )"
346 fi
347 fi
348fi 330fi
349 331
350case ${KDE_REQUIRED} in 332case ${KDE_REQUIRED} in
351 always) 333 always)
352 IUSE+=" aqua" 334 IUSE+=" aqua"
353 COMMONDEPEND+=" ${kdecommondepend}" 335 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}"
354 DEPEND+=" ${kdedepend}" 336 [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}"
337 [[ -n ${kderdepend} ]] && RDEPEND+=" ${kderdepend}"
355 ;; 338 ;;
356 optional) 339 optional)
357 IUSE+=" aqua kde" 340 IUSE+=" aqua kde"
358 COMMONDEPEND+=" kde? ( ${kdecommondepend} )" 341 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" kde? ( ${kdecommondepend} )"
359 DEPEND+=" kde? ( ${kdedepend} )" 342 [[ -n ${kdedepend} ]] && DEPEND+=" kde? ( ${kdedepend} )"
343 [[ -n ${kderdepend} ]] && RDEPEND+=" kde? ( ${kderdepend} )"
360 ;; 344 ;;
361 *) ;; 345 *) ;;
362esac 346esac
363 347
364unset kdecommondepend kdedepend 348unset kdecommondepend kdedepend kderdepend
365 349
366debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}" 350debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}"
367debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}" 351debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}"
368debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}" 352debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}"
369debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: PDEPEND is ${PDEPEND}"
370 353
371# Accumulate dependencies set by this eclass 354# Accumulate dependencies set by this eclass
372DEPEND+=" ${COMMONDEPEND}" 355DEPEND+=" ${COMMONDEPEND}"
373RDEPEND+=" ${COMMONDEPEND}" 356RDEPEND+=" ${COMMONDEPEND}"
374unset COMMONDEPEND 357unset COMMONDEPEND
477 fi 460 fi
478 _kmname_pv="${_kmname}-${PV}" 461 _kmname_pv="${_kmname}-${PV}"
479 case ${KDEBASE} in 462 case ${KDEBASE} in
480 kde-base) 463 kde-base)
481 case ${PV} in 464 case ${PV} in
482 4.[45].8[05] | 4.[45].9[02568]) 465 4.[456].8[05] | 4.[456].9[023568])
483 # Normally packed unstable releases 466 # Unstable KDE SC releases
484 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 467 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 ;; 468 ;;
469 4.4.6)
470 # Only kdepim here
471 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2"
472 ;;
473 *)
474 # Stable KDE SC releases
490 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 475 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2"
476 ;;
491 esac 477 esac
492 ;; 478 ;;
493 koffice) 479 koffice)
494 case ${PV} in 480 case ${PV} in
495 2.1.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;; 481 2.1.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.73

  ViewVC Help
Powered by ViewVC 1.1.20