52 | | ln -s ${prefix}/lib/node_modules/.bin/npm ${destroot}${prefix}/bin |
53 | | ln -s ${prefix}/lib/node_modules/.bin/npm_g ${destroot}${prefix}/bin |
54 | | ln -s ${prefix}/lib/node_modules/.bin/npm-g ${destroot}${prefix}/bin |
55 | | system -W ${destroot}${prefix}/lib "${prefix}/bin/node ${worksrcpath}/cli.js install ${worksrcpath}" |
56 | | |
57 | | foreach f [glob -tails -directory ${worksrcpath}/man/man1 *] { |
58 | | if [string equal $f npm.1] { |
59 | | copy ${worksrcpath}/man/man1/$f ${destroot}${prefix}/share/man/man1/$f |
60 | | } else { |
61 | | copy ${worksrcpath}/man/man1/$f ${destroot}${prefix}/share/man/man1/npm-$f |
62 | | } |
63 | | } |
64 | | |
65 | | foreach f [glob -tails -directory ${worksrcpath}/man/man3 *] { |
66 | | if [string equal $f npm.3] { |
67 | | copy ${worksrcpath}/man/man3/$f ${destroot}${prefix}/share/man/man3/$f |
68 | | } else { |
69 | | copy ${worksrcpath}/man/man3/$f ${destroot}${prefix}/share/man/man3/npm-$f |
70 | | } |
71 | | } |
72 | | } |
73 | | |