Modified: trunk/dports/devel/npm/Portfile (93853 => 93854)
--- 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\