From: Michael Palimaka Date: Thu, 26 Jan 2017 09:43:39 +0000 (+1100) Subject: kde-apps/akonadi: avoid checking GCC version when using clang X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4817ac5148e37411f1f31f822eb5765fb5b34127;p=gentoo.git kde-apps/akonadi: avoid checking GCC version when using clang Gentoo-bug: 607248 Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- diff --git a/kde-apps/akonadi/akonadi-1.13.1_pre20160203-r1.ebuild b/kde-apps/akonadi/akonadi-1.13.1_pre20160203-r1.ebuild index a4f5fbea7bd7..3526cd018dd1 100644 --- a/kde-apps/akonadi/akonadi-1.13.1_pre20160203-r1.ebuild +++ b/kde-apps/akonadi/akonadi-1.13.1_pre20160203-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -53,7 +53,7 @@ PATCHES=( ) pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then + if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc; then [[ $(gcc-major-version) -lt 4 ]] || \ ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) \ && die "Sorry, but gcc-4.6 and earlier won't work (see bug #520102)."