diff options
author | William Hubbs <williamh@gentoo.org> | 2023-02-04 13:25:25 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2023-02-04 13:25:25 -0600 |
commit | 895db73cef929c35eb376d76ba197fe5f2942708 (patch) | |
tree | 18cf878c0447338d563ba9891fa10fd43560acdc /net-libs | |
parent | net-libs/nodejs: add 18.14.0 (diff) | |
download | gentoo-895db73cef929c35eb376d76ba197fe5f2942708.tar.gz gentoo-895db73cef929c35eb376d76ba197fe5f2942708.tar.bz2 gentoo-895db73cef929c35eb376d76ba197fe5f2942708.zip |
net-libs/nodejs: sync live
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/nodejs/nodejs-99999999.ebuild | 10 |
1 files changed, 9 insertions, 1 deletions
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 +} |