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

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

  ViewVC Help
Powered by ViewVC 1.1.20