Revision: 93854 https://trac.macports.org/changeset/93854 Author: ciserlohn@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\