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.108 2011/10/06 14:13:29 alexxy Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.109 2011/10/21 23:00:19 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 | |
619 | |
620 | # Check if gcc compiler is fresh enough. |
620 | # Check if gcc compiler is fresh enough. |
621 | # In theory should be in pkg_pretend but we check it only for kdelibs there |
621 | # In theory should be in pkg_pretend but we check it only for kdelibs there |
622 | # and for others we do just quick scan in pkg_setup because pkg_pretend |
622 | # and for others we do just quick scan in pkg_setup because pkg_pretend |
623 | # executions consume quite some time. |
623 | # executions consume quite some time. |
|
|
624 | # We can only do this for EAPI 4 or later because the MERGE_TYPE variable |
|
|
625 | # is otherwise undefined. |
|
|
626 | if [[ ${EAPI:-0} != 3 ]]; then |
624 | if [[ ${MERGE_TYPE} != binary ]]; then |
627 | if [[ ${MERGE_TYPE} != binary ]]; then |
625 | [[ $(gcc-major-version) -lt 4 ]] || \ |
628 | [[ $(gcc-major-version) -lt 4 ]] || \ |
626 | ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ |
629 | ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ |
627 | && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." |
630 | && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." |
|
|
631 | fi |
628 | fi |
632 | fi |
629 | |
633 | |
630 | KDEDIR=/usr |
634 | KDEDIR=/usr |
631 | : ${PREFIX:=/usr} |
635 | : ${PREFIX:=/usr} |
632 | EKDEDIR=${EPREFIX}/usr |
636 | EKDEDIR=${EPREFIX}/usr |