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

ciserlohn at macports.org ciserlohn at macports.org
Fri Oct 12 00:23:41 PDT 2012


Revision: 98658
          http://trac.macports.org//changeset/98658
Author:   ciserlohn at macports.org
Date:     2012-10-12 00:23:40 -0700 (Fri, 12 Oct 2012)
Log Message:
-----------
npm: update to version 1.1.63

* Always install bash completion file.
* Don't use the legacy path for bash completion file.

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

Modified: trunk/dports/devel/npm/Portfile
===================================================================
--- trunk/dports/devel/npm/Portfile	2012-10-12 04:43:24 UTC (rev 98657)
+++ trunk/dports/devel/npm/Portfile	2012-10-12 07:23:40 UTC (rev 98658)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                npm
-version             1.1.62
+version             1.1.63
 categories          devel
 platforms           darwin
 license             MIT
@@ -23,8 +23,8 @@
 
 extract.suffix      .tgz
 
-checksums           rmd160  6dfbfa79767a74ce980d7036ebaa0d5daf7f3633 \
-                    sha256  bc1b201db78489721db7550a3bebe8f10da92e2c0afa4af701167e82cbc50a05
+checksums           rmd160 277e78d0e26457aae3c68a7a99eb2816d0286456 \
+                    sha256 4ef1432ab06fa3482a7f76419aa06a89c168771ef66aae68ca45a0e10ad49868
 
 worksrcdir          "package"
 
@@ -64,12 +64,14 @@
 destroot.args       --global .
 destroot.destdir    --prefix=${destroot}${prefix}
 
+post-destroot {
+    set completions_path ${destroot}${prefix}/share/bash-completion/completions/
+    xinstall -d ${completions_path}
+    xinstall -m 644 ${worksrcpath}/lib/utils/completion.sh ${completions_path}/npm
+}
+
 variant bash_completion {
     depends_run-append path:etc/bash_completion:bash-completion
-    post-destroot {
-        xinstall -d ${destroot}${prefix}/etc/bash_completion.d
-        ln -sf ${prefix}/lib/node_modules/npm/lib/utils/completion.sh ${destroot}${prefix}/etc/bash_completion.d/npm
-    }
 }
 
 notes "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121012/fe66c1ff/attachment-0001.html>


More information about the macports-changes mailing list