/[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.38 Revision 1.39
1# Copyright 2007-2009 Gentoo Foundation 1# Copyright 2007-2009 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.38 2009/05/28 09:47:52 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.39 2009/06/04 09:29:54 scarabeus 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
80 KDE_MINIMAL="${NEED_KDE}" 80 KDE_MINIMAL="${NEED_KDE}"
81 ;; 81 ;;
82 esac 82 esac
83fi 83fi
84 84
85# @ECLASS-VARIABLE: QT_DEPEND
86# @DESCRIPTION:
87# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1..
88# Currently defaults to 4.5.1
89QT_DEPEND="${QT_DEPEND:-4.5.1}"
90
85# OpenGL dependencies 91# OpenGL dependencies
86qtopengldepend=" 92qtopengldepend="
87 x11-libs/qt-opengl:4 93 >=x11-libs/qt-opengl-${QT_DEPEND}:4
88" 94"
89case ${OPENGL_REQUIRED} in 95case ${OPENGL_REQUIRED} in
90 always) 96 always)
91 COMMONDEPEND="${COMMONDEPEND} ${qtopengldepend}" 97 COMMONDEPEND="${COMMONDEPEND} ${qtopengldepend}"
92 ;; 98 ;;
100esac 106esac
101unset qtopengldepend 107unset qtopengldepend
102 108
103# WebKit dependencies 109# WebKit dependencies
104qtwebkitdepend=" 110qtwebkitdepend="
105 x11-libs/qt-webkit:4 111 >=x11-libs/qt-webkit-${QT_DEPEND}:4
106" 112"
107case ${WEBKIT_REQUIRED} in 113case ${WEBKIT_REQUIRED} in
108 always) 114 always)
109 COMMONDEPEND="${COMMONDEPEND} ${qtwebkitdepend}" 115 COMMONDEPEND="${COMMONDEPEND} ${qtwebkitdepend}"
110 ;; 116 ;;
155 fi 161 fi
156fi # NEED_KDE != NONE block 162fi # NEED_KDE != NONE block
157 163
158# Setup packages inheriting this eclass 164# Setup packages inheriting this eclass
159case ${KDEBASE} in 165case ${KDEBASE} in
160
161 kde-base) 166 kde-base)
162 if [[ $BUILD_TYPE = live ]]; then 167 if [[ $BUILD_TYPE = live ]]; then
163 # Disable tests for live ebuilds 168 # Disable tests for live ebuilds
164 RESTRICT="${RESTRICT} test" 169 RESTRICT="${RESTRICT} test"
165 # Live ebuilds in kde-base default to kdeprefix by default 170 # Live ebuilds in kde-base default to kdeprefix by default
189 " 194 "
190 fi 195 fi
191 done 196 done
192 unset slot 197 unset slot
193 ;; 198 ;;
194
195 koffice) 199 koffice)
196 SLOT="2" 200 SLOT="2"
197 _pv="-${KDE_MINIMAL}" 201 _pv="-${KDE_MINIMAL}"
198 _pvn="${_pv}" 202 _pvn="${_pv}"
199 ;; 203 ;;
200
201 *) 204 *)
202 _pv="-${KDE_MINIMAL}" 205 _pv="-${KDE_MINIMAL}"
203 _pvn="${_pv}" 206 _pvn="${_pv}"
204 ;; 207 ;;
205 208
209kdecommondepend=" 212kdecommondepend="
210 dev-lang/perl 213 dev-lang/perl
211 x11-libs/libXext 214 x11-libs/libXext
212 x11-libs/libXt 215 x11-libs/libXt
213 x11-libs/libXxf86vm 216 x11-libs/libXxf86vm
214 x11-libs/qt-core:4[qt3support,ssl] 217 >=x11-libs/qt-core-${QT_DEPEND}:4[qt3support,ssl]
215 x11-libs/qt-gui:4[accessibility,dbus] 218 >=x11-libs/qt-gui-${QT_DEPEND}:4[accessibility,dbus]
216 x11-libs/qt-qt3support:4[accessibility] 219 >=x11-libs/qt-qt3support-${QT_DEPEND}:4[accessibility]
217 x11-libs/qt-script:4 220 >=x11-libs/qt-script-${QT_DEPEND}:4
218 x11-libs/qt-sql:4[qt3support] 221 >=x11-libs/qt-sql-${QT_DEPEND}:4[qt3support]
219 x11-libs/qt-svg:4 222 >=x11-libs/qt-svg-${QT_DEPEND}:4
220 x11-libs/qt-test:4 223 >=x11-libs/qt-test-${QT_DEPEND}:4
221" 224"
222if [[ ${PN} != kdelibs ]]; then 225if [[ ${PN} != kdelibs ]]; then
223 if [[ ${KDEBASE} = kde-base ]]; then 226 if [[ ${KDEBASE} = kde-base ]]; then
224 kdecommondepend="${kdecommondepend} 227 kdecommondepend="${kdecommondepend}
225 kdeprefix? ( >=kde-base/kdelibs${_pv}[kdeprefix] ) 228 kdeprefix? ( >=kde-base/kdelibs${_pv}[kdeprefix] )
348 _kmname_pv="${_kmname}-${PV}" 351 _kmname_pv="${_kmname}-${PV}"
349 if [[ $NEED_KDE != live ]]; then 352 if [[ $NEED_KDE != live ]]; then
350 case ${KDEBASE} in 353 case ${KDEBASE} in
351 kde-base) 354 kde-base)
352 case ${PV} in 355 case ${PV} in
353 4.2.85) 356 4.2.85|4.2.90)
354 # block for normally packed unstable releases 357 # block for normally packed unstable releases
355 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 358 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
356 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*) 359 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*)
357 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/${_kmname_pv}.tar.lzma" ;; 360 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/${_kmname_pv}.tar.lzma" ;;
358 4.1.9* | 4.1.8* | 4.1.7* | 4.1.6* | 4.0.9* | 4.0.8*) 361 4.1.9* | 4.1.8* | 4.1.7* | 4.1.6* | 4.0.9* | 4.0.8*)
609 echo 612 echo
610 einfo "WARNING! This is an experimental live ebuild of ${KMNAME:-${PN}}" 613 einfo "WARNING! This is an experimental live ebuild of ${KMNAME:-${PN}}"
611 einfo "Use it at your own risk." 614 einfo "Use it at your own risk."
612 einfo "Do _NOT_ file bugs at bugs.gentoo.org because of this ebuild!" 615 einfo "Do _NOT_ file bugs at bugs.gentoo.org because of this ebuild!"
613 echo 616 echo
617 elif [[ ${BUILD_TYPE} != live ]] && [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]] && has kdeprefix ${IUSE//+} && use kdeprefix; then
618 # warning about kdeprefix for non-live users
619 echo
620 ewarn "WARNING! You have kdeprefix useflag enabled."
621 ewarn "This setting is strongly discouraged and might lead to potential troubles"
622 ewarn "with KDE update strategies."
623 ewarn "You are using this setup at your own risk and kde team does not"
624 ewarn "take responsibilities for dead kittens."
625 echo
614 fi 626 fi
615} 627}
616 628
617# @FUNCTION: kde4-base_pkg_postrm 629# @FUNCTION: kde4-base_pkg_postrm
618# @DESCRIPTION: 630# @DESCRIPTION:

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20