/[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.65 Revision 1.66
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.65 2010/06/26 16:02:18 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.66 2010/08/09 15:59:04 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
48fi 48fi
49 49
50# @ECLASS-VARIABLE: KDE_MINIMAL 50# @ECLASS-VARIABLE: KDE_MINIMAL
51# @DESCRIPTION: 51# @DESCRIPTION:
52# This variable is used when KDE_REQUIRED is set, to specify required KDE minimal 52# This variable is used when KDE_REQUIRED is set, to specify required KDE minimal
53# version for apps to work. Currently defaults to 4.3 53# version for apps to work. Currently defaults to 4.4
54# One may override this variable to raise version requirements. 54# One may override this variable to raise version requirements.
55# For possible values look at KDE_SLOTS and KDE_LIVE_SLOTS variables. 55# For possible values look at KDE_SLOTS and KDE_LIVE_SLOTS variables.
56# Note that it is fixed to ${SLOT} for kde-base packages. 56# Note that it is fixed to ${SLOT} for kde-base packages.
57KDE_MINIMAL="${KDE_MINIMAL:-4.3}" 57KDE_MINIMAL="${KDE_MINIMAL:-4.4}"
58 58
59# Set slot for packages in kde-base, koffice and kdevelop 59# Set slot for packages in kde-base, koffice and kdevelop
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.5* | 4.4.[6-9]*) SLOT="4.5" ;; 66 4.5* | 4.4.[6-9]*) SLOT="4.5" ;;
66 4.4* | 4.3.[6-9]*) SLOT="4.4" ;; 67 4.4* | 4.3.[6-9]*) SLOT="4.4" ;;
67 4.3*) SLOT="4.3" ;;
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 ;;
102 fi 102 fi
103 SLOT="4" 103 SLOT="4"
104 ;; 104 ;;
105esac 105esac
106 106
107slot_is_at_least 4.5 ${KDE_MINIMAL} && CMAKE_MIN_VERSION="2.6.4" 107slot_is_at_least 4.5 ${KDE_MINIMAL} && CMAKE_MIN_VERSION="2.8.1"
108 108
109inherit ${buildsystem_eclass} 109inherit ${buildsystem_eclass}
110 110
111EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm 111EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm
112 112
185 ;; 185 ;;
186esac 186esac
187 187
188# @ECLASS-VARIABLE: QT_MINIMAL 188# @ECLASS-VARIABLE: QT_MINIMAL
189# @DESCRIPTION: 189# @DESCRIPTION:
190# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1.. 190# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1...
191# Currently defaults to 4.5.1 for KDE 4.3 and earlier 191# 4.6.0 for 4.4 and 4.6.3 for 4.5 and later
192# or 4.6.0 for KDE 4.4 and later
193if slot_is_at_least 4.4 "${KDE_MINIMAL}"; then 192if slot_is_at_least 4.5 "${KDE_MINIMAL}"; then
193 QT_MINIMAL="${QT_MINIMAL:-4.6.3}"
194else
194 QT_MINIMAL="${QT_MINIMAL:-4.6.0}" 195 QT_MINIMAL="${QT_MINIMAL:-4.6.0}"
195fi 196fi
196
197QT_MINIMAL="${QT_MINIMAL:-4.5.1}"
198 197
199# OpenGL dependencies 198# OpenGL dependencies
200qtopengldepend=" 199qtopengldepend="
201 >=x11-libs/qt-opengl-${QT_MINIMAL}:4 200 >=x11-libs/qt-opengl-${QT_MINIMAL}:4
202" 201"
285 x11-libs/libXt 284 x11-libs/libXt
286 x11-libs/libXxf86vm 285 x11-libs/libXxf86vm
287 ) 286 )
288" 287"
289#perl is not needed on host (+ difficult crosscompilation) 288#perl is not needed on host (+ difficult crosscompilation)
290tc-is-cross-compiler || kdecommondepend="$kdecommondepend dev-lang/perl" 289tc-is-cross-compiler || kdecommondepend+=" dev-lang/perl"
291 290
292if [[ ${PN} != kdelibs ]]; then 291if [[ ${PN} != kdelibs ]]; then
293 if [[ ${KDEBASE} = kde-base ]]; then 292 if [[ ${KDEBASE} = kde-base ]]; then
294 kdecommondepend+=" $(add_kdebase_dep kdelibs)" 293 kdecommondepend+=" $(add_kdebase_dep kdelibs)"
295 # libknotificationitem only when SLOT is 4.3
296 [[ ${PN} != libknotificationitem ]] && [[ ${SLOT} = 4.3 ]] && \
297 kdecommondepend+=" $(add_kdebase_dep libknotificationitem)"
298 else 294 else
299 kdecommondepend+=" 295 kdecommondepend+="
300 >=kde-base/kdelibs-${KDE_MINIMAL} 296 >=kde-base/kdelibs-${KDE_MINIMAL}
301 " 297 "
302 if [[ ${KDEBASE} = kdevelop ]]; then 298 if [[ ${KDEBASE} = kdevelop ]]; then
455 fi 451 fi
456 _kmname_pv="${_kmname}-${PV}" 452 _kmname_pv="${_kmname}-${PV}"
457 case ${KDEBASE} in 453 case ${KDEBASE} in
458 kde-base) 454 kde-base)
459 case ${PV} in 455 case ${PV} in
460 4.[34].8[05] | 4.[34].9[0568]) 456 4.[45].8[05] | 4.[45].9[02568])
461 # block for normally packed unstable releases 457 # Normally packed unstable releases
462 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 458 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
463 4.[34].[6-9]*) 459 4.[45].[6-9]*)
464 # Repacked tarballs: need to depend on xz-utils to ensure that they can be unpacked 460 # Repacked tarballs: need to depend on xz-utils to ensure that they can be unpacked
465 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/src/${_kmname_pv}.tar.xz" 461 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/src/${_kmname_pv}.tar.xz"
466 DEPEND+=" app-arch/xz-utils" 462 DEPEND+=" app-arch/xz-utils"
467 ;; 463 ;;
468 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 464 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
622 fi 618 fi
623 fi 619 fi
624 620
625 # Apply patches 621 # Apply patches
626 base_src_prepare 622 base_src_prepare
627 epatch_user
628 623
629 # Save library dependencies 624 # Save library dependencies
630 if [[ -n ${KMSAVELIBS} ]] ; then 625 if [[ -n ${KMSAVELIBS} ]] ; then
631 save_library_dependencies 626 save_library_dependencies
632 fi 627 fi

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

  ViewVC Help
Powered by ViewVC 1.1.20