commit:     305e66472660ee50117267b499f23d3883340deb
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 18 16:35:52 2024 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jul 18 16:38:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=305e6647

net-libs/nodejs: use get_NINJAOPTS

Before this change, -l or --load-average was not respected by the
upstream build system.

Closes: https://bugs.gentoo.org/935806
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 net-libs/nodejs/nodejs-20.15.1.ebuild | 3 ++-
 net-libs/nodejs/nodejs-22.4.1.ebuild  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-libs/nodejs/nodejs-20.15.1.ebuild 
b/net-libs/nodejs/nodejs-20.15.1.ebuild
index 8fdfeb48ebd2..c64c7c0937b6 100644
--- a/net-libs/nodejs/nodejs-20.15.1.ebuild
+++ b/net-libs/nodejs/nodejs-20.15.1.ebuild
@@ -7,7 +7,7 @@ CONFIG_CHECK="~ADVISE_SYSCALLS"
 PYTHON_COMPAT=( python3_{9..12} )
 PYTHON_REQ_USE="threads(+)"
 
-inherit bash-completion-r1 check-reqs flag-o-matic linux-info pax-utils 
python-any-r1 toolchain-funcs xdg-utils
+inherit bash-completion-r1 check-reqs flag-o-matic linux-info ninja-utils 
pax-utils python-any-r1 toolchain-funcs xdg-utils
 
 DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
 HOMEPAGE="https://nodejs.org/";
@@ -169,6 +169,7 @@ src_configure() {
 }
 
 src_compile() {
+       export NINJA_ARGS=$(get_NINJAOPTS)
        emake -Onone
 }
 

diff --git a/net-libs/nodejs/nodejs-22.4.1.ebuild 
b/net-libs/nodejs/nodejs-22.4.1.ebuild
index 3b8cd150293e..9ea8cdbd10f4 100644
--- a/net-libs/nodejs/nodejs-22.4.1.ebuild
+++ b/net-libs/nodejs/nodejs-22.4.1.ebuild
@@ -7,7 +7,7 @@ CONFIG_CHECK="~ADVISE_SYSCALLS"
 PYTHON_COMPAT=( python3_{9..12} )
 PYTHON_REQ_USE="threads(+)"
 
-inherit bash-completion-r1 check-reqs flag-o-matic linux-info pax-utils 
python-any-r1 toolchain-funcs xdg-utils
+inherit bash-completion-r1 check-reqs flag-o-matic linux-info ninja-utils 
pax-utils python-any-r1 toolchain-funcs xdg-utils
 
 DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
 HOMEPAGE="https://nodejs.org/";
@@ -182,6 +182,7 @@ src_configure() {
 }
 
 src_compile() {
+       export NINJA_ARGS=" $(get_NINJAOPTS)"
        emake -Onone
 }
 

Reply via email to