commit:     d786158dbadb65561d25a7c33be92959586b9da9
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 19 01:14:22 2018 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Tue Jun 19 01:14:22 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d786158d

www-client/firefox: Fix llvm/clang detection for build, bug #658402 Thanks
 alexander <AT> tsoy.me for his contribution.

 www-client/firefox/firefox-60.0.2.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/www-client/firefox/firefox-60.0.2.ebuild 
b/www-client/firefox/firefox-60.0.2.ebuild
index 61c634ee758..e6ad0fecb10 100644
--- a/www-client/firefox/firefox-60.0.2.ebuild
+++ b/www-client/firefox/firefox-60.0.2.ebuild
@@ -29,8 +29,8 @@ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases";
 
 MOZCONFIG_OPTIONAL_WIFI=1
 
-inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils 
mozconfig-v6.60 \
-               pax-utils xdg-utils autotools mozlinguas-v2
+inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils llvm \
+               mozconfig-v6.60 pax-utils xdg-utils autotools mozlinguas-v2
 
 DESCRIPTION="Firefox Web Browser"
 HOMEPAGE="http://www.mozilla.com/firefox";
@@ -78,6 +78,10 @@ if [[ -z $GMP_PLUGIN_LIST ]]; then
        GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
 fi
 
+llvm_check_deps() {
+       has_version "sys-devel/clang:${LLVM_SLOT}"
+}
+
 pkg_setup() {
        moz_pkgsetup
 
@@ -99,6 +103,8 @@ pkg_setup() {
        fi
 
        addpredict /proc/self/oom_score_adj
+
+       llvm_pkg_setup
 }
 
 pkg_pretend() {

Reply via email to