[81103] trunk/dports/devel/npm/Portfile

ciserlohn at macports.org ciserlohn at macports.org
Mon Jul 25 09:56:56 PDT 2011


Revision: 81103
          http://trac.macports.org/changeset/81103
Author:   ciserlohn at macports.org
Date:     2011-07-25 09:56:55 -0700 (Mon, 25 Jul 2011)
Log 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

Modified Paths:
--------------
    trunk/dports/devel/npm/Portfile

Modified: trunk/dports/devel/npm/Portfile
===================================================================
--- trunk/dports/devel/npm/Portfile	2011-07-25 16:35:21 UTC (rev 81102)
+++ trunk/dports/devel/npm/Portfile	2011-07-25 16:56:55 UTC (rev 81103)
@@ -10,6 +10,8 @@
 license             MIT
 maintainers         ciserlohn
 
+supported_archs     noarch
+
 description         node package manager
 long_description    npm is a package manager for node. \
                     You can use it to install and publish your node programs. \
@@ -17,13 +19,11 @@
 
 homepage            http://www.npmjs.org/
 
-master_sites        https://github.com/isaacs/npm/tarball/v${version}
-
 fetch.type          git
-git.url             http://github.com/isaacs/npm.git
+git.url             https://github.com/isaacs/npm.git
 git.branch          v${version}
 
-depends_lib         port:nodejs
+depends_lib         path:bin/node:nodejs
 
 use_configure       no
 
@@ -34,7 +34,7 @@
 build {}
 
 destroot {
-    system "cd ${destroot}/${prefix}/lib && node ${worksrcpath}/cli.js install ${worksrcpath}"
+    system "cd ${destroot}${prefix}/lib && node ${worksrcpath}/cli.js install ${worksrcpath}"
 
     ln -s ${prefix}/lib/node_modules/.bin/npm ${destroot}${prefix}/bin
     ln -s ${prefix}/lib/node_modules/.bin/npm_g ${destroot}${prefix}/bin
@@ -44,3 +44,14 @@
         copy ${worksrcpath}/man1/$f ${destroot}${prefix}/share/man/man1/npm-$f
     }    
 }
+
+notes "\
+* It is not recommended to install packages globally. But if you do so \n\
+* please be aware that they won't get cleaned up when you deactivate \n\
+* or uninstall ${name}. Globally installed packages will remain in: \n\
+* ${prefix}/lib/node_modules/ until you manually delete them. \
+" 
+
+livecheck.type      regex
+livecheck.url       https://github.com/isaacs/npm/branches
+livecheck.regex     "/isaacs/npm/commits/v(\\d+\\.\\d+\\.\\d+)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110725/e258b7ce/attachment.html>


More information about the macports-changes mailing list