commit:     8f24ae86e614567ae2ffcd316a2115da31d72214
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  1 19:44:07 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar  1 19:44:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f24ae86

games-strategy/0ad: pass JOBS as env var

Closes: https://bugs.gentoo.org/773622
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-strategy/0ad/0ad-0.0.24b_alpha.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild 
b/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
index 803df28d90d..a0468ee4b3e 100644
--- a/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
+++ b/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
@@ -143,7 +143,7 @@ src_compile() {
        if use nvtt ; then
                cd libraries/source/nvtt || die
                elog "Building bundled NVTT (bug #768930)"
-               ./build.sh JOBS="-j$(makeopts_jobs)" || die "Failed to build 
bundled NVTT"
+               JOBS="-j$(makeopts_jobs)" ./build.sh || die "Failed to build 
bundled NVTT"
                cd "${S}" || die
        fi
 
@@ -153,12 +153,16 @@ src_compile() {
        # e.g. bug #768840.
        cd libraries/source/spidermonkey || die
        elog "Building bundled SpiderMonkey (bug #768840)"
-       XARGS="${EPREFIX}/usr/bin/xargs" ./build.sh JOBS="-j$(makeopts_jobs)" 
|| die "Failed to build bundled SpiderMonkey"
+       XARGS="${EPREFIX}/usr/bin/xargs" \
+               JOBS="-j$(makeopts_jobs)" \
+               ./build.sh \
+       || die "Failed to build bundled SpiderMonkey"
+
        cd "${S}" || die
 
        # Build 0ad itself!
        elog "Building 0ad"
-       emake -C build/workspaces/gcc verbose=1 JOBS="-j$(makeopts_jobs)"
+       JOBS="-j$(makeopts_jobs)" emake -C build/workspaces/gcc verbose=1
 
        # Build assets
        # (We only do this if we're using a snapshot/non-release)

Reply via email to