commit:     be214f59a2387da65ae4665cbe1639a9c3e6bb42
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 22:32:40 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 23:04:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be214f59

games-strategy/0ad: use multiprocessing.eclass

Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild 
b/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
index 1a15d95383c..cde93c077b3 100644
--- a/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
+++ b/games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 WX_GTK_VER="3.0-gtk3"
 
-inherit desktop toolchain-funcs wxwidgets xdg
+inherit desktop toolchain-funcs multiprocessing wxwidgets xdg
 
 if [[ ${PV} == 9999 ]]; then
        inherit git-r3
@@ -145,7 +145,7 @@ src_compile() {
        if use nvtt ; then
                cd libraries/source/nvtt || die
                elog "Building bundled nvtt (bug #768930)"
-               ./build.sh JOBS="-j3" || die "Failed to build bundled nvtt"
+               ./build.sh JOBS="-j$(makeopts_jobs)" || die "Failed to build 
bundled nvtt"
                cd "${S}" || die
        fi
 
@@ -155,12 +155,12 @@ 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="-j3" || die "Failed 
to build bundled SpiderMonkey"
+       XARGS="${EPREFIX}/usr/bin/xargs" ./build.sh JOBS="-j(makeopts_jobs)" || 
die "Failed to build bundled SpiderMonkey"
        cd "${S}" || die
 
        # build 0ad
        elog "Building 0ad"
-       emake -C build/workspaces/gcc verbose=1 JOBS="-j3"
+       emake -C build/workspaces/gcc verbose=1 JOBS="-j$(makeopts_jobs)"
 
        # Merged from 0ad-data
        # bug #771147 (comment 3)

Reply via email to