/[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.102 Revision 1.103
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.102 2011/07/10 17:53:37 tampakrap Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.103 2011/07/11 17:16:04 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
619# @FUNCTION: kde4-base_pkg_setup 619# @FUNCTION: kde4-base_pkg_setup
620# @DESCRIPTION: 620# @DESCRIPTION:
621# Do some basic settings 621# Do some basic settings
622kde4-base_pkg_setup() { 622kde4-base_pkg_setup() {
623 debug-print-function ${FUNCNAME} "$@" 623 debug-print-function ${FUNCNAME} "$@"
624 local gccversion
624 625
625 if has kdeprefix ${IUSE//+} && use kdeprefix; then 626 if has kdeprefix ${IUSE//+} && use kdeprefix; then
626 eerror "Sorry, kdeprefix support has been removed." 627 eerror "Sorry, kdeprefix support has been removed."
627 eerror "Please remove kdeprefix from your USE variable." 628 eerror "Please remove kdeprefix from your USE variable."
628 die "kdeprefix support has been removed" 629 die "kdeprefix support has been removed"
642 # Check if gcc compiler is fresh enough. 643 # Check if gcc compiler is fresh enough.
643 # In theory should be in pkg_pretend but we check it only for kdelibs there 644 # In theory should be in pkg_pretend but we check it only for kdelibs there
644 # and for others we do just quick scan in pkg_setup because pkg_pretend 645 # and for others we do just quick scan in pkg_setup because pkg_pretend
645 # executions consume quite some time. 646 # executions consume quite some time.
646 if [[ ${MERGE_TYPE} != binary ]]; then 647 if [[ ${MERGE_TYPE} != binary ]]; then
647 [[ $(gcc-major-version) -lt 4 ]] || \ 648 gccversion=$(gcc-major-version)$(gcc-minor-version)
648 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ 649 [[ ${gccversion} < 43 ]] \
649 && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." 650 && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)."
650 fi 651 fi
651 652
652 KDEDIR=/usr 653 KDEDIR=/usr
653 : ${PREFIX:=/usr} 654 : ${PREFIX:=/usr}

Legend:
Removed from v.1.102  
changed lines
  Added in v.1.103

  ViewVC Help
Powered by ViewVC 1.1.20