/[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.14 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.14 2008/10/04 14:51: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
386 KDEDIR="/usr" 386 KDEDIR="/usr"
387 KDEDIRS="/usr:/usr/local" 387 KDEDIRS="/usr:/usr/local"
388 ;; 388 ;;
389 esac 389 esac
390 fi 390 fi
391 391
392 if [[ -n ${KDEBASE} ]]; then 392 # Set the prefix based on KDEDIR
393 # Make it a consequence of kdeprefix
393 PREFIX=${KDEDIR} 394 PREFIX=${KDEDIR}
394 else
395 # if PREFIX is not defined we set it to the default value of /usr
396 PREFIX="${PREFIX:-/usr}"
397 fi
398 395
399 unset _kdedir 396 unset _kdedir
400 397
401 case "${EAPI}" in 398 case "${EAPI}" in
402 2 | 2_pre3 | 2_pre2 | 2_pre1) 399 2 | 2_pre3 | 2_pre2 | 2_pre1)
502 if [[ -z $* ]]; then 499 if [[ -z $* ]]; then
503 # 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.
504 # 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.
505 # Monolithic ebuilds will use the split ebuild patches. 502 # Monolithic ebuilds will use the split ebuild patches.
506 [[ -d "${KDE_S}" ]] || unpack ${A} 503 [[ -d "${KDE_S}" ]] || unpack ${A}
507 kde4-base_apply_patches 504 base_src_unpack $*
508 else 505 else
509 # Call base_src_unpack, which unpacks and patches 506 # Call base_src_unpack, which unpacks and patches
510 # step by step transparently as defined in the ebuild. 507 # step by step transparently as defined in the ebuild.
511 base_src_unpack $* 508 base_src_unpack $*
512 fi 509 fi

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

  ViewVC Help
Powered by ViewVC 1.1.20