diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /net-libs/nodejs/nodejs-99999999.ebuild | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'net-libs/nodejs/nodejs-99999999.ebuild')
-rw-r--r-- | net-libs/nodejs/nodejs-99999999.ebuild | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net-libs/nodejs/nodejs-99999999.ebuild b/net-libs/nodejs/nodejs-99999999.ebuild index 87f5c52bddd6..e7a2c7c7eb93 100644 --- a/net-libs/nodejs/nodejs-99999999.ebuild +++ b/net-libs/nodejs/nodejs-99999999.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 git-r3 pax-utils python-any-r1 toolchain-funcs xdg-utils +inherit bash-completion-r1 flag-o-matic git-r3 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 ) @@ -39,9 +40,6 @@ BDEPEND=" DEPEND=" ${RDEPEND} " -PATCHES=( - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch -) pkg_pretend() { (use x86 && ! use cpu_flags_x86_sse2) && \ @@ -164,7 +162,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 |