diff options
Diffstat (limited to 'sci-physics/root/root-5.34.32.ebuild')
-rw-r--r-- | sci-physics/root/root-5.34.32.ebuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sci-physics/root/root-5.34.32.ebuild b/sci-physics/root/root-5.34.32.ebuild index 915e7123c314..2fb31dcb9382 100644 --- a/sci-physics/root/root-5.34.32.ebuild +++ b/sci-physics/root/root-5.34.32.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -126,16 +126,19 @@ die_compiler() { # $3 - clang++ # $4 - icc/icpc check_compiler() { - local ver + local cur ver case "$(tc-getCXX)" in *clang++*) ver="$(best_version sys-devel/clang | sed 's:sys-devel/clang-::')" + cur="$3" ;; *g++*) ver="$(gcc-version)" + cur="$2" ;; *icc*|*icpc*) ver="$(best_version dev-lang/icc | sed 's:dev-lang/icc-::')" + cur="$4" ;; *) ewarn "You are using an unsupported compiler." @@ -143,7 +146,7 @@ check_compiler() { return 0 ;; esac - version_is_at_least "$3" "${ver}" || die_compiler "$1" "$2" "$3" "$4" "${ver}" + version_is_at_least "${cur}" "${ver}" || die_compiler "$1" "$2" "$3" "$4" "${ver}" } pkg_setup() { |