diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-04 21:14:48 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-04 21:14:48 +0000 |
commit | 2997df5d95cb64694ec91d50c93407e92c68e2a8 (patch) | |
tree | 4cc7277d0f8e23337b953de5f5b0a374ca2366e5 /net-libs/nodejs/nodejs-99999999.ebuild | |
parent | 0a18aff6704a42e6affa21ec92064d29fc7f8646 (diff) |
gentoo auto-resync : 04:02:2023 - 21:14:48
Diffstat (limited to 'net-libs/nodejs/nodejs-99999999.ebuild')
-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 +} |