Ticket #34705: completion.patch
File completion.patch, 799 bytes (added by robsonpeixoto@…, 12 years ago) |
---|
-
Portfile
5 5 6 6 name npm 7 7 version 1.1.23 8 revision 1 8 9 categories devel 9 10 platforms darwin 10 11 license MIT … … 39 40 reinplace "s|@@NPM_PATH_JSREGEX@@|${npm_path_jsregex}|g" ${worksrcpath}/lib/update.js 40 41 } 41 42 43 variant bash_completion { 44 depends_run-append path:etc/bash_completion:bash-completion 45 post-destroot { 46 xinstall -d ${destroot}${prefix}/etc/bash_completion.d 47 ln -sf ${prefix}/lib/node_modules/npm/lib/utils/completion.sh ${destroot}${prefix}/etc/bash_completion.d/npm 48 } 49 } 50 42 51 build {} 43 52 44 53 destroot.cmd ${prefix}/bin/node ./cli.js