summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2011-07-06 19:30:01 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2011-07-06 19:30:01 +0000
commit6d4acb95e0dcd3cd58e10446c4a19c7d9175eb15 (patch)
tree26419855153fe579f85e6491096b6539e9310299 /kde-base/kdelibs
parentOnly check for gcc version in kde4-base.eclass if we actually compile something (diff)
downloadgentoo-2-6d4acb95e0dcd3cd58e10446c4a19c7d9175eb15.tar.gz
gentoo-2-6d4acb95e0dcd3cd58e10446c4a19c7d9175eb15.tar.bz2
gentoo-2-6d4acb95e0dcd3cd58e10446c4a19c7d9175eb15.zip
Only check for gcc version if we actually compile something
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'kde-base/kdelibs')
-rw-r--r--kde-base/kdelibs/kdelibs-4.6.4-r1.ebuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/kde-base/kdelibs/kdelibs-4.6.4-r1.ebuild b/kde-base/kdelibs/kdelibs-4.6.4-r1.ebuild
index 0d98598e11f4..1138509121c0 100644
--- a/kde-base/kdelibs/kdelibs-4.6.4-r1.ebuild
+++ b/kde-base/kdelibs/kdelibs-4.6.4-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-4.6.4-r1.ebuild,v 1.1 2011/06/21 20:36:38 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-4.6.4-r1.ebuild,v 1.2 2011/07/06 19:30:01 dilfridge Exp $
EAPI=4
@@ -137,9 +137,11 @@ PATCHES=(
)
pkg_pretend() {
- [[ $(gcc-major-version) -lt 4 ]] || \
- ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \
- && die "Sorry, but gcc-4.3 and earlier won't work for KDE SC 4.6 (see bug #354837)."
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ [[ $(gcc-major-version) -lt 4 ]] || \
+ ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \
+ && die "Sorry, but gcc-4.3 and earlier won't work for KDE SC 4.6 (see bug #354837)."
+ fi
}
src_prepare() {