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.100 2011/06/15 22:03:13 abcd Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.101 2011/07/06 19:26:40 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 |
… | |
… | |
633 | |
633 | |
634 | # Check if gcc compiler is fresh enough. |
634 | # Check if gcc compiler is fresh enough. |
635 | # In theory should be in pkg_pretend but we check it only for kdelibs there |
635 | # In theory should be in pkg_pretend but we check it only for kdelibs there |
636 | # and for others we do just quick scan in pkg_setup because pkg_pretend |
636 | # and for others we do just quick scan in pkg_setup because pkg_pretend |
637 | # executions consume quite some time. |
637 | # executions consume quite some time. |
|
|
638 | if [[ ${MERGE_TYPE} != binary ]]; then |
638 | [[ $(gcc-major-version) -lt 4 ]] || \ |
639 | [[ $(gcc-major-version) -lt 4 ]] || \ |
639 | ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ |
640 | ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ |
640 | && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." |
641 | && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." |
|
|
642 | fi |
641 | |
643 | |
642 | KDEDIR=/usr |
644 | KDEDIR=/usr |
643 | : ${PREFIX:=/usr} |
645 | : ${PREFIX:=/usr} |
644 | EKDEDIR=${EPREFIX}/usr |
646 | EKDEDIR=${EPREFIX}/usr |
645 | |
647 | |