[87856] trunk/dports/devel/npm/Portfile
ciserlohn at macports.org
ciserlohn at macports.org
Fri Dec 9 02:29:29 PST 2011
Revision: 87856
http://trac.macports.org/changeset/87856
Author: ciserlohn at macports.org
Date: 2011-12-09 02:29:28 -0800 (Fri, 09 Dec 2011)
Log Message:
-----------
npm: simplify destroot phase (fixes #32456)
Modified Paths:
--------------
trunk/dports/devel/npm/Portfile
Modified: trunk/dports/devel/npm/Portfile
===================================================================
--- trunk/dports/devel/npm/Portfile 2011-12-09 10:17:21 UTC (rev 87855)
+++ trunk/dports/devel/npm/Portfile 2011-12-09 10:29:28 UTC (rev 87856)
@@ -5,7 +5,7 @@
name npm
version 1.0.106
-revision 1
+revision 2
categories devel
platforms darwin
license MIT
@@ -47,30 +47,10 @@
build {}
-destroot {
+destroot.cmd ${prefix}/bin/node ./cli.js
+destroot.args --global .
+destroot.destdir --prefix=${destroot}${prefix}
- ln -s ${prefix}/lib/node_modules/.bin/npm ${destroot}${prefix}/bin
- ln -s ${prefix}/lib/node_modules/.bin/npm_g ${destroot}${prefix}/bin
- ln -s ${prefix}/lib/node_modules/.bin/npm-g ${destroot}${prefix}/bin
- system -W ${destroot}${prefix}/lib "${prefix}/bin/node ${worksrcpath}/cli.js install ${worksrcpath}"
-
- foreach f [glob -tails -directory ${worksrcpath}/man/man1 *] {
- if [string equal $f npm.1] {
- copy ${worksrcpath}/man/man1/$f ${destroot}${prefix}/share/man/man1/$f
- } else {
- copy ${worksrcpath}/man/man1/$f ${destroot}${prefix}/share/man/man1/npm-$f
- }
- }
-
- foreach f [glob -tails -directory ${worksrcpath}/man/man3 *] {
- if [string equal $f npm.3] {
- copy ${worksrcpath}/man/man3/$f ${destroot}${prefix}/share/man/man3/$f
- } else {
- copy ${worksrcpath}/man/man3/$f ${destroot}${prefix}/share/man/man3/npm-$f
- }
- }
-}
-
notes "
It is not recommended to install packages globally. But if you do so\
please be aware that they won't get cleaned up when you deactivate\
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111209/4eaad94f/attachment.html>
More information about the macports-changes
mailing list