/[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.13 Revision 1.18
1# Copyright 2007-2008 Gentoo Foundation 1# Copyright 2007-2008 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.13 2008/10/02 06:49:02 jmbsvicetto Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.18 2008/11/22 01:23:31 jmbsvicetto 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
82 *) 82 *)
83 OPENGL_REQUIRED="never" 83 OPENGL_REQUIRED="never"
84 ;; 84 ;;
85 esac 85 esac
86 86
87 COMMONDEPEND="${COMMONDEPEND} ${qtdepend}" 87 COMMONDEPEND="${COMMONDEPEND} ${qtdepend} !x11-libs/qt-phonon"
88} 88}
89kde4-base_set_qt_dependencies 89kde4-base_set_qt_dependencies
90 90
91# Set the cmake dependencies 91# Set the cmake dependencies
92case "${PV}" in 92case "${PV}" in
99esac 99esac
100 100
101# Set the common dependencies 101# Set the common dependencies
102DEPEND="${DEPEND} ${COMMONDEPEND} ${CMAKEDEPEND} 102DEPEND="${DEPEND} ${COMMONDEPEND} ${CMAKEDEPEND}
103 dev-util/pkgconfig 103 dev-util/pkgconfig
104 kde-base/automoc
104 x11-libs/libXt 105 x11-libs/libXt
105 x11-proto/xf86vidmodeproto" 106 x11-proto/xf86vidmodeproto"
106RDEPEND="${RDEPEND} ${COMMONDEPEND}" 107RDEPEND="${RDEPEND} ${COMMONDEPEND}"
107 108
108# Add the kdeprefix use flag 109# Add the kdeprefix use flag
385 KDEDIR="/usr" 386 KDEDIR="/usr"
386 KDEDIRS="/usr:/usr/local" 387 KDEDIRS="/usr:/usr/local"
387 ;; 388 ;;
388 esac 389 esac
389 fi 390 fi
390 391
391 if [[ -n ${KDEBASE} ]]; then 392 # Set the prefix based on KDEDIR
393 # Make it a consequence of kdeprefix
392 PREFIX=${KDEDIR} 394 PREFIX=${KDEDIR}
393 else
394 # if PREFIX is not defined we set it to the default value of /usr
395 PREFIX="${PREFIX:-/usr}"
396 fi
397 395
398 unset _kdedir 396 unset _kdedir
399 397
400 case "${EAPI}" in 398 case "${EAPI}" in
401 2 | 2_pre3 | 2_pre2 | 2_pre1) 399 2 | 2_pre3 | 2_pre2 | 2_pre1)
501 if [[ -z $* ]]; then 499 if [[ -z $* ]]; then
502 # Unpack first and deal with KDE patches after examing possible patch sets. 500 # Unpack first and deal with KDE patches after examing possible patch sets.
503 # To be picked up, patches need to conform to the guidelines stated before. 501 # To be picked up, patches need to conform to the guidelines stated before.
504 # Monolithic ebuilds will use the split ebuild patches. 502 # Monolithic ebuilds will use the split ebuild patches.
505 [[ -d "${KDE_S}" ]] || unpack ${A} 503 [[ -d "${KDE_S}" ]] || unpack ${A}
506 kde4-base_apply_patches 504 base_src_unpack $*
507 else 505 else
508 # Call base_src_unpack, which unpacks and patches 506 # Call base_src_unpack, which unpacks and patches
509 # step by step transparently as defined in the ebuild. 507 # step by step transparently as defined in the ebuild.
510 base_src_unpack $* 508 base_src_unpack $*
511 fi 509 fi

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20