diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-09-07 23:20:59 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-09-07 23:59:06 +0200 |
commit | 2caf8004b7c582d65d1d01a96f32febdedcb8fdd (patch) | |
tree | cb429f1d233bbad0c106c0a7f35fa1ceaa1c6220 | |
parent | app-metrics/mongodb_exporter: 0.11.1 bump (diff) | |
download | gentoo-2caf8004b7c582d65d1d01a96f32febdedcb8fdd.tar.gz gentoo-2caf8004b7c582d65d1d01a96f32febdedcb8fdd.tar.bz2 gentoo-2caf8004b7c582d65d1d01a96f32febdedcb8fdd.zip |
dev-lang/spidermonkey: clang/LLVM is required
Closes: https://bugs.gentoo.org/740890
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r-- | dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild b/dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild index c41e32dbc5c7..28d49a10116c 100644 --- a/dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild +++ b/dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild @@ -7,7 +7,9 @@ PYTHON_COMPAT=( python3_{6..9} ) WANT_AUTOCONF="2.1" -inherit autotools check-reqs multiprocessing python-any-r1 +LLVM_MAX_SLOT=10 + +inherit autotools check-reqs llvm multiprocessing python-any-r1 MY_PN="mozjs" MY_PV="${PV/_pre*}" # Handle Gentoo pre-releases @@ -58,6 +60,7 @@ IUSE="debug +jit test" RESTRICT="!test? ( test )" BDEPEND="${PYTHON_DEPS} + sys-devel/clang >=virtual/rust-1.43.0 virtual/pkgconfig" @@ -75,6 +78,15 @@ RDEPEND="${CDEPEND}" S="${WORKDIR}/firefox-${MY_PV}/js/src" +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + einfo "Will use LLVM slot ${LLVM_SLOT}!" >&2 +} + python_check_deps() { if use test ; then has_version "dev-python/six[${PYTHON_USEDEP}]" @@ -100,6 +112,8 @@ pkg_setup() { check-reqs_pkg_setup + llvm_pkg_setup + python-any-r1_pkg_setup } |