www-client/chromium: copy CHROMIUM_FORCE_CLANG for M69 and M70
authorMike Gilbert <floppym@gentoo.org>
Mon, 15 Oct 2018 13:47:56 +0000 (09:47 -0400)
committerMike Gilbert <floppym@gentoo.org>
Mon, 15 Oct 2018 13:47:56 +0000 (09:47 -0400)
Package-Manager: Portage-2.3.50_p14, Repoman-2.3.11_p21
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
www-client/chromium/chromium-69.0.3497.100.ebuild
www-client/chromium/chromium-70.0.3538.54.ebuild

index 9b12bab541e74576231c8261f1ce27683f255d32..dc4c6f3f3342898bf1ca7bb53079cf77e6e6949a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -101,11 +101,16 @@ DEPEND="${COMMON_DEPEND}
        sys-apps/hwids[usb(+)]
        >=sys-devel/bison-2.4.3
        sys-devel/flex
-       >=sys-devel/clang-5
        virtual/pkgconfig
        dev-vcs/git
 "
 
+: ${CHROMIUM_FORCE_CLANG=yes}
+
+if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then
+       DEPEND+=" >=sys-devel/clang-5"
+fi
+
 if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
        EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
 fi
@@ -371,7 +376,7 @@ src_configure() {
        # Make sure the build system will use the right tools, bug #340795.
        tc-export AR CC CXX NM
 
-       if ! tc-is-clang; then
+       if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] && ! tc-is-clang; then
                # Force clang since gcc is pretty broken at the moment.
                CC=${CHOST}-clang
                CXX=${CHOST}-clang++
index 536322cbe16a8208879224c47430e755c435dc74..6f9776159858acff7cc182c8afa7f71308ec36d5 100644 (file)
@@ -101,11 +101,16 @@ DEPEND="${COMMON_DEPEND}
        sys-apps/hwids[usb(+)]
        >=sys-devel/bison-2.4.3
        sys-devel/flex
-       >=sys-devel/clang-5
        virtual/pkgconfig
        dev-vcs/git
 "
 
+: ${CHROMIUM_FORCE_CLANG=yes}
+
+if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then
+       DEPEND+=" >=sys-devel/clang-5"
+fi
+
 if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
        EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
 fi
@@ -381,7 +386,7 @@ src_configure() {
        # Make sure the build system will use the right tools, bug #340795.
        tc-export AR CC CXX NM
 
-       if ! tc-is-clang; then
+       if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] && ! tc-is-clang; then
                # Force clang since gcc is pretty broken at the moment.
                CC=${CHOST}-clang
                CXX=${CHOST}-clang++