[94597] trunk/dports/devel/npm/Portfile

ciserlohn at macports.org ciserlohn at macports.org
Sun Jun 24 12:35:59 PDT 2012


Revision: 94597
          https://trac.macports.org/changeset/94597
Author:   ciserlohn at macports.org
Date:     2012-06-24 12:35:56 -0700 (Sun, 24 Jun 2012)
Log Message:
-----------
npm: fix link to the npm binary

Modified Paths:
--------------
    trunk/dports/devel/npm/Portfile

Modified: trunk/dports/devel/npm/Portfile
===================================================================
--- trunk/dports/devel/npm/Portfile	2012-06-24 14:10:30 UTC (rev 94596)
+++ trunk/dports/devel/npm/Portfile	2012-06-24 19:35:56 UTC (rev 94597)
@@ -5,6 +5,7 @@
 
 name                npm
 version             1.1.32
+revision            1
 categories          devel
 platforms           darwin
 license             MIT
@@ -45,6 +46,11 @@
 destroot.args       --global .
 destroot.destdir    --prefix=${destroot}${prefix}
 
+post-destroot {
+    delete ${destroot}${prefix}/bin/npm
+    ln -sf ${prefix}/lib/node_modules/npm/bin/npm-cli.js ${destroot}${prefix}/bin/npm
+}
+
 variant bash_completion {
     depends_run-append path:etc/bash_completion:bash-completion
     post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120624/9953e6a8/attachment.html>


More information about the macports-changes mailing list