/[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.112 Revision 1.113
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.112 2012/01/17 11:20:03 johu Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.113 2012/03/06 22:23:51 dilfridge 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
81 case ${PN} in 81 case ${PN} in
82 kdevelop|quanta) 82 kdevelop|quanta)
83 KDEVELOP_VERSION=${PV} 83 KDEVELOP_VERSION=${PV}
84 KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)" 84 KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)"
85 ;; 85 ;;
86 kdevplatform) 86 kdevplatform|kdevelop-php*)
87 KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)" 87 KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)"
88 KDEVPLATFORM_VERSION=${PV} 88 KDEVPLATFORM_VERSION=${PV}
89 ;; 89 ;;
90 *) 90 *)
91 KDEVELOP_VERSION="${KDEVELOP_VERSION:-4.0.0}" 91 KDEVELOP_VERSION="${KDEVELOP_VERSION:-4.0.0}"
197esac 197esac
198 198
199# @ECLASS-VARIABLE: QT_MINIMAL 199# @ECLASS-VARIABLE: QT_MINIMAL
200# @DESCRIPTION: 200# @DESCRIPTION:
201# Determine version of qt we enforce as minimal for the package. 201# Determine version of qt we enforce as minimal for the package.
202if version_is_at_least 4.8.50 "${KDE_MINIMAL}"; then
203 # Upstream has added an *undeclared* dependency on Qt 4.8...
204 QT_MINIMAL="${QT_MINIMAL:-4.8.0}"
202if version_is_at_least 4.7.80 "${KDE_MINIMAL}"; then 205elif version_is_at_least 4.7.80 "${KDE_MINIMAL}"; then
203 QT_MINIMAL="${QT_MINIMAL:-4.7.4}" 206 QT_MINIMAL="${QT_MINIMAL:-4.7.4}"
204else 207else
205 QT_MINIMAL="${QT_MINIMAL:-4.7.0}" 208 QT_MINIMAL="${QT_MINIMAL:-4.7.0}"
206fi 209fi
207 210
282 ;; 285 ;;
283 *) ;; 286 *) ;;
284esac 287esac
285unset cppuintdepend 288unset cppuintdepend
286 289
287
288# WebKit use dependencies
289case ${KDE_REQUIRED} in
290 always)
291 qtwebkitusedeps="[kde]"
292 ;;
293 optional)
294 qtwebkitusedeps="[kde?]"
295 ;;
296 *) ;;
297esac
298# KDE dependencies 290# KDE dependencies
299# Qt accessibility classes are needed in various places, bug 325461 291# Qt accessibility classes are needed in various places, bug 325461
300kdecommondepend=" 292kdecommondepend="
301 dev-lang/perl 293 dev-lang/perl
302 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl] 294 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl]
303 >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus] 295 >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus]
304 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde] 296 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility]
305 >=x11-libs/qt-script-${QT_MINIMAL}:4 297 >=x11-libs/qt-script-${QT_MINIMAL}:4
306 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support] 298 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support]
307 >=x11-libs/qt-svg-${QT_MINIMAL}:4 299 >=x11-libs/qt-svg-${QT_MINIMAL}:4
308 >=x11-libs/qt-test-${QT_MINIMAL}:4 300 >=x11-libs/qt-test-${QT_MINIMAL}:4
309 >=x11-libs/qt-webkit-${QT_MINIMAL}:4${qtwebkitusedeps} 301 >=x11-libs/qt-webkit-${QT_MINIMAL}:4
310 !aqua? ( 302 !aqua? (
311 x11-libs/libXext 303 x11-libs/libXext
312 x11-libs/libXt 304 x11-libs/libXt
313 x11-libs/libXxf86vm 305 x11-libs/libXxf86vm
314 x11-libs/libXcomposite 306 x11-libs/libXcomposite
447 fi 439 fi
448 _kmname_pv="${_kmname}-${PV}" 440 _kmname_pv="${_kmname}-${PV}"
449 case ${KDEBASE} in 441 case ${KDEBASE} in
450 kde-base) 442 kde-base)
451 case ${PV} in 443 case ${PV} in
444 4.4.11.1)
445 # KDEPIM 4.4, special case
446 # TODO: Remove this part when KDEPIM 4.4 gets out of the tree
447 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" ;;
452 4.[456789].8[05] | 4.[456789].9[0235678]) 448 4.[456789].8[05] | 4.[456789].9[0235678])
453 # Unstable KDE SC releases 449 # Unstable KDE SC releases
454 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" 450 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
455 if ! version_is_at_least 4.6.80 ${PV} 451 4.8.1)
456 then 452 # Stable KDE SC releases with .xz support
457 # KDEPIM IS SPECIAL 453 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;;
458 [[ ${KMNAME} == "kdepim" || ${KMNAME} == "kdepim-runtime" ]] && SRC_URI="mirror://kde/unstable/kdepim/${PV}/${_kmname_pv}.tar.bz2"
459 fi
460 ;;
461 *) 454 *)
462 # Stable KDE SC releases 455 # Stable KDE SC releases
463 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" 456 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
464 if ! version_is_at_least 4.6.80 ${PV}
465 then
466 # KDEPIM IS SPECIAL
467 # TODO: It might not be with KDE 4.7 (see above)
468 [[ ${KMNAME} == "kdepim" || ${KMNAME} == "kdepim-runtime" ]] && SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2"
469 fi
470 ;;
471 esac 457 esac
472 ;; 458 ;;
473 koffice) 459 koffice)
474 case ${PV} in 460 case ${PV} in
475 2.[1234].[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;; 461 2.[1234].[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
476 *) SRC_URI="mirror://kde/stable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;; 462 *) SRC_URI="mirror://kde/stable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
477 esac 463 esac
478 ;; 464 ;;
479 kdevelop) 465 kdevelop|kdevelop-php*|kdevplatform)
466 case ${KDEVELOP_VERSION} in
467 4.[12].[6-9]*) SRC_URI="mirror://kde/unstable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;;
480 SRC_URI="mirror://kde/stable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" 468 *) SRC_URI="mirror://kde/stable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;;
469 esac
481 ;; 470 ;;
482 esac 471 esac
483} 472}
484 473
485_calculate_live_repo() { 474_calculate_live_repo() {

Legend:
Removed from v.1.112  
changed lines
  Added in v.1.113

  ViewVC Help
Powered by ViewVC 1.1.20