New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81103


Ignore:
Timestamp:
07/25/11 09:56:55 (4 years ago)
Author:
ciserlohn@…
Message:

npm: various improvements and fixes

  • add 'supported_archs'
  • add 'livecheck'
  • add 'notes' regarding globally installed packages
  • fetch sources over https
  • let nodejs-devel satisfy the node dependency
  • remove unused 'master_sites' as the tarball doesn't include the necessary git submodules
  • remove redundant '/' already included in $prefix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/npm/Portfile

    r81029 r81103  
    1111maintainers         ciserlohn 
    1212 
     13supported_archs     noarch 
     14 
    1315description         node package manager 
    1416long_description    npm is a package manager for node. \ 
     
    1820homepage            http://www.npmjs.org/ 
    1921 
    20 master_sites        https://github.com/isaacs/npm/tarball/v${version} 
    21  
    2222fetch.type          git 
    23 git.url             http://github.com/isaacs/npm.git 
     23git.url             https://github.com/isaacs/npm.git 
    2424git.branch          v${version} 
    2525 
    26 depends_lib         port:nodejs 
     26depends_lib         path:bin/node:nodejs 
    2727 
    2828use_configure       no 
     
    3535 
    3636destroot { 
    37     system "cd ${destroot}/${prefix}/lib && node ${worksrcpath}/cli.js install ${worksrcpath}" 
     37    system "cd ${destroot}${prefix}/lib && node ${worksrcpath}/cli.js install ${worksrcpath}" 
    3838 
    3939    ln -s ${prefix}/lib/node_modules/.bin/npm ${destroot}${prefix}/bin 
     
    4545    }     
    4646} 
     47 
     48notes "\ 
     49* It is not recommended to install packages globally. But if you do so \n\ 
     50* please be aware that they won't get cleaned up when you deactivate \n\ 
     51* or uninstall ${name}. Globally installed packages will remain in: \n\ 
     52* ${prefix}/lib/node_modules/ until you manually delete them. \ 
     53"  
     54 
     55livecheck.type      regex 
     56livecheck.url       https://github.com/isaacs/npm/branches 
     57livecheck.regex     "/isaacs/npm/commits/v(\\d+\\.\\d+\\.\\d+)" 
Note: See TracChangeset for help on using the changeset viewer.