summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/nodejs/nodejs-14.12.0.ebuild')
-rw-r--r--net-libs/nodejs/nodejs-14.12.0.ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/net-libs/nodejs/nodejs-14.12.0.ebuild b/net-libs/nodejs/nodejs-14.12.0.ebuild
index 43b934166628..83578308be86 100644
--- a/net-libs/nodejs/nodejs-14.12.0.ebuild
+++ b/net-libs/nodejs/nodejs-14.12.0.ebuild
@@ -4,7 +4,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
PYTHON_REQ_USE="threads(+)"
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
+inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
HOMEPAGE="https://nodejs.org/"
@@ -32,6 +32,7 @@ RDEPEND="
"
BDEPEND="
${PYTHON_DEPS}
+ sys-apps/coreutils
systemtap? ( dev-util/systemtap )
test? ( net-misc/curl )
pax_kernel? ( sys-apps/elfix )
@@ -162,7 +163,7 @@ src_install() {
# npm otherwise tries to write outside of the sandbox
local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
- local tmp_npm_completion_file="$(emktemp)"
+ local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)"
"${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
newbashcomp "${tmp_npm_completion_file}" npm
sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die