commit: 895db73cef929c35eb376d76ba197fe5f2942708
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 4 19:25:25 2023 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Feb 4 19:25:25 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=895db73c
net-libs/nodejs: sync live
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
net-libs/nodejs/nodejs-99999999.ebuild | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/net-libs/nodejs/nodejs-99999999.ebuild
b/net-libs/nodejs/nodejs-99999999.ebuild
index cb4f9e37b767..4e6da58645d6 100644
--- a/net-libs/nodejs/nodejs-99999999.ebuild
+++ b/net-libs/nodejs/nodejs-99999999.ebuild
@@ -50,7 +50,6 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
- "${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch
)
# These are measured on a loong machine with -ggdb on, and only checked
@@ -205,6 +204,8 @@ src_install() {
if use npm; then
keepdir /etc/npm
+ echo "NPM_CONFIG_GLOBALCONFIG=${EPREFIX}/etc/npm/npmrc" >
"${T}"/50npm
+ doenvd "${T}"/50npm
# Install bash completion for `npm`
local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t
npm.XXXXXXXXXX)"
@@ -248,3 +249,10 @@ src_test() {
out/${BUILDTYPE}/cctest || die
"${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare
-J message parallel sequential || die
}
+
+pkg_postinst() {
+ if use npm; then
+ ewarn "remember to run: source /etc/profile if you plan to use
nodejs"
+ ewarn " in your current shell"
+ fi
+}