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

ciserlohn at macports.org ciserlohn at macports.org
Fri Jun 1 08:06:33 PDT 2012


Revision: 93854
          https://trac.macports.org/changeset/93854
Author:   ciserlohn at macports.org
Date:     2012-06-01 08:06:31 -0700 (Fri, 01 Jun 2012)
Log Message:
-----------
npm: add bash-completion variant (see #34705)

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

Modified: trunk/dports/devel/npm/Portfile
===================================================================
--- trunk/dports/devel/npm/Portfile	2012-06-01 14:48:36 UTC (rev 93853)
+++ trunk/dports/devel/npm/Portfile	2012-06-01 15:06:31 UTC (rev 93854)
@@ -45,6 +45,14 @@
 destroot.args       --global .
 destroot.destdir    --prefix=${destroot}${prefix}
 
+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 "
 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/20120601/bf2f1c91/attachment.html>


More information about the macports-changes mailing list