<pre style='margin:0'>
Chih-Hsuan Yen (yan12125) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/57fa90a72bd9adcd3bcfa6562df47067adbe4043">https://github.com/macports/macports-ports/commit/57fa90a72bd9adcd3bcfa6562df47067adbe4043</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 57fa90a72bd9adcd3bcfa6562df47067adbe4043
</span>Author: Chih-Hsuan Yen <yan12125@macports.org>
AuthorDate: Sun Apr 28 21:40:10 2019 +0800
<span style='display:block; white-space:pre;color:#404040;'> npm*: drop npm2 and switch to nodejs6 for older systems
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> npm supports versions that are still shipped with maintained Node.js
</span><span style='display:block; white-space:pre;color:#404040;'> versions [1]. Currently Node.js 6.x ships npm 3.x [2]. As nodejs4 is to
</span><span style='display:block; white-space:pre;color:#404040;'> be dropped, there's no need to keep npm2 around.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> [1] https://github.com/npm/cli/wiki/LTS
</span><span style='display:block; white-space:pre;color:#404040;'> [2] https://github.com/nodejs/node/blob/v6.x/deps/npm/package.json
</span>---
devel/npm2/Portfile | 80 +++--------------------------------------------------
devel/npm3/Portfile | 10 ++-----
devel/npm4/Portfile | 9 ++----
devel/npm5/Portfile | 7 ++---
devel/npm6/Portfile | 2 +-
5 files changed, 12 insertions(+), 96 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/npm2/Portfile b/devel/npm2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0654c67..f142815 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/npm2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/npm2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,86 +1,14 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup obsolete 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+replaced_by npm3
</span>
name npm2
version 2.15.12
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories devel
platforms darwin
license MIT
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {ciserlohn @ci42}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs noarch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description node package manager
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description npm is a package manager for node. \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- You can use it to install and publish your node programs. \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- It manages dependencies and does other cool stuff.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts npm3 npm4 npm5 npm6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://www.npmjs.org/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites http://registry.npmjs.org/npm/-/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname npm-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-extract.suffix .tgz
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 19537fe216197f11c783d6f3214362a67f12b63c \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 69b25a3b4646313a90c8d796e265c8e587ec27e894adfb105df5c7e4072db284
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-worksrcdir "package"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib path:bin/node:nodejs4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-lib-update.js.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- regsub -all {/} "^${prefix}/lib" {\\\/} npm_path_jsregex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@@NPM_PATH_JSREGEX@@|${npm_path_jsregex}|g" ${worksrcpath}/lib/update.js
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach f [concat ${worksrcpath}/cli.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/bin/npm-cli.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/ansi/examples/beep/index.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/ansi/examples/clear/index.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/ansi/examples/cursorPosition.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/ansi/examples/progress/index.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/cmd-shim/test/00-setup.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/node-gyp/bin/node-gyp.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/nopt/bin/nopt.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/nopt/examples/my-program.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/opener/opener.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/rimraf/bin.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/semver/bin/semver \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/node_modules/which/bin/which \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/scripts/index-build.js \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/scripts/relocate.sh] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|/usr/bin/env node|${prefix}/bin/node|" ${f}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.cmd ${prefix}/bin/node ./cli.js
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.args --global .
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.destdir --prefix=${destroot}${prefix}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set completions_path ${destroot}${prefix}/share/bash-completion/completions/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d ${completions_path}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 ${worksrcpath}/lib/utils/completion.sh ${completions_path}/npm
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-notes "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-It is not recommended to install packages globally. But if you do so\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-please be aware that they won't get cleaned up when you deactivate\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-or uninstall ${name}. Globally installed packages will remain in\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-${prefix}/lib/node_modules/ until you manually delete them.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url http://registry.npmjs.org/npm
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex {"latest-2":"(.*?)"}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/npm3/Portfile b/devel/npm3/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e3b38cb..e9b4788 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/npm3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/npm3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span>
name npm3
version 3.10.10
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span>
categories devel
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,7 +18,7 @@ long_description npm is a package manager for node. \
</span> You can use it to install and publish your node programs. \
It manages dependencies and does other cool stuff.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts npm2 npm4 npm5 npm6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts npm4 npm5 npm6
</span>
homepage http://www.npmjs.org/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,12 +35,6 @@ worksrcdir "package"
</span>
depends_lib path:bin/node:nodejs6
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-replace path:bin/node:nodejs6 path:bin/node:nodejs4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> use_configure no
patchfiles patch-lib-update.js.diff
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/npm4/Portfile b/devel/npm4/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9407a52..813012a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/npm4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/npm4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name npm4
version 4.6.1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories devel
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,7 +18,7 @@ long_description npm is a package manager for node. \
</span> You can use it to install and publish your node programs. \
It manages dependencies and does other cool stuff.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts npm2 npm3 npm5 npm6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts npm3 npm5 npm6
</span>
homepage http://www.npmjs.org/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,12 +35,6 @@ worksrcdir "package"
</span>
depends_lib path:bin/node:nodejs6
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-replace path:bin/node:nodejs6 path:bin/node:nodejs4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> use_configure no
patchfiles patch-lib-update.js.diff
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/npm5/Portfile b/devel/npm5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 194b6a5..a882307 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/npm5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/npm5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name npm5
version 5.10.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories devel
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,7 +18,7 @@ long_description npm is a package manager for node. \
</span> You can use it to install and publish your node programs. \
It manages dependencies and does other cool stuff.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts npm2 npm3 npm4 npm6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts npm3 npm4 npm6
</span>
homepage https://www.npmjs.com/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,9 +38,7 @@ worksrcdir "package"
</span> depends_lib path:bin/node:nodejs8
platform darwin {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-replace path:bin/node:nodejs8 path:bin/node:nodejs4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {${os.major} < 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 13} {
</span> depends_lib-replace path:bin/node:nodejs8 path:bin/node:nodejs6
}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/npm6/Portfile b/devel/npm6/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a00a72b..c098737 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/npm6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/npm6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,7 +14,7 @@ long_description npm is a package manager for node. \
</span> You can use it to install and publish your node programs. \
It manages dependencies and does other cool stuff.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts npm2 npm3 npm4 npm5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts npm3 npm4 npm5
</span>
homepage https://www.npmjs.com/
</pre><pre style='margin:0'>
</pre>