www-client/chromium: check MERGE_TYPE before gcc version
authorMike Gilbert <floppym@gentoo.org>
Sat, 20 Aug 2016 15:40:29 +0000 (11:40 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 20 Aug 2016 15:40:29 +0000 (11:40 -0400)
www-client/chromium/chromium-54.0.2832.2.ebuild

index 27c458a6fce41962495bfecda69d64e3b9ec7939..b1895b90265b66f0a2fd347e21bf7c9213c94554 100644 (file)
@@ -165,8 +165,10 @@ PATCHES=(
 )
 
 pkg_pretend() {
-       if tc-is-gcc && ! version_is_at_least 4.8 "$(gcc-version)"; then
-               die 'At least gcc 4.8 is required, see bugs: #535730, #525374, #518668.'
+       if [[ ${MERGE_TYPE} != binary ]]; then
+               if tc-is-gcc && ! version_is_at_least 4.8 "$(gcc-version)"; then
+                       die 'At least gcc 4.8 is required, see bugs: #535730, #525374, #518668.'
+               fi
        fi
 
        # Check build requirements, bug #541816 and bug #471810 .
@@ -181,7 +183,6 @@ pkg_pretend() {
 }
 
 pkg_setup() {
-
        # Make sure the build system will use the right python, bug #344367.
        python-any-r1_pkg_setup