kde-apps/akonadi: avoid checking GCC version when using clang
authorMichael Palimaka <kensington@gentoo.org>
Thu, 26 Jan 2017 09:43:39 +0000 (20:43 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 26 Jan 2017 09:43:53 +0000 (20:43 +1100)
Gentoo-bug: 607248

Package-Manager: Portage-2.3.3, Repoman-2.3.1

kde-apps/akonadi/akonadi-1.13.1_pre20160203-r1.ebuild

index a4f5fbea7bd7b5b532857a8eedb94d00314d5707..3526cd018dd15018f2c81d805676c3eb49a31fca 100644 (file)
@@ -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)."