[84391] trunk/dports/devel/npm

ciserlohn at macports.org ciserlohn at macports.org
Sun Sep 25 02:58:06 PDT 2011


Revision: 84391
          http://trac.macports.org/changeset/84391
Author:   ciserlohn at macports.org
Date:     2011-09-25 02:58:01 -0700 (Sun, 25 Sep 2011)
Log Message:
-----------
npm: build from release tarball instead of git (see #31353)

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

Removed Paths:
-------------
    trunk/dports/devel/npm/files/patch-scripts-doc-build.sh

Modified: trunk/dports/devel/npm/Portfile
===================================================================
--- trunk/dports/devel/npm/Portfile	2011-09-25 08:03:06 UTC (rev 84390)
+++ trunk/dports/devel/npm/Portfile	2011-09-25 09:58:01 UTC (rev 84391)
@@ -19,38 +19,36 @@
 
 homepage            http://www.npmjs.org/
 
-fetch.type          git
-git.url             https://github.com/isaacs/npm.git
-git.branch          v${version}
+master_sites        http://registry.npmjs.org/npm/-/
 
+extract.suffix      .tgz
+
+checksums           rmd160  1ffcb84c6d282a331e05731d578c75b600d7b2a2 \
+                    sha256  46f717f65d63f5b58a76bba29f06a40f36626b3435ce167f99909a1a4e5e99dd
+
+worksrcdir          "package"
+
 depends_lib         path:bin/node:nodejs
 
 use_configure       no
 
-patchfiles          patch-lib-update.js \
-                    patch-scripts-doc-build.sh
 
-post-fetch {
-    system "cd ${worksrcpath} && git submodule update --init --recursive"
-}
 
+patchfiles          patch-lib-update.js
+
 post-patch {
     regsub -all {/} "^${prefix}/(bin/npm\\|lib/node_modules/npm)+" {\\\/} npm_path_jsregex
     reinplace "s|@@NPM_PATH_JSREGEX@@|${npm_path_jsregex}|g" ${worksrcpath}/lib/update.js
-    reinplace "s|@@_VERSION_@@|${version}|g" ${worksrcpath}/scripts/doc-build.sh
 }
 
-use_parallel_build  no
+build {}
 
-build.target        doc
-build.env           HOME=${workpath}
-
 destroot {
 
     ln -s ${prefix}/lib/node_modules/.bin/npm ${destroot}${prefix}/bin
     ln -s ${prefix}/lib/node_modules/.bin/npm_g ${destroot}${prefix}/bin
     ln -s ${prefix}/lib/node_modules/.bin/npm-g ${destroot}${prefix}/bin
-    system "cd ${destroot}${prefix}/lib && node ${worksrcpath}/cli.js install ${worksrcpath}"
+    system -W ${destroot}${prefix}/lib "${prefix}/bin/node ${worksrcpath}/cli.js install ${worksrcpath}"
 
     foreach f [glob -tails -directory ${worksrcpath}/man1 *] {
         if [string equal $f npm.1] {

Deleted: trunk/dports/devel/npm/files/patch-scripts-doc-build.sh
===================================================================
--- trunk/dports/devel/npm/files/patch-scripts-doc-build.sh	2011-09-25 08:03:06 UTC (rev 84390)
+++ trunk/dports/devel/npm/files/patch-scripts-doc-build.sh	2011-09-25 09:58:01 UTC (rev 84391)
@@ -1,11 +0,0 @@
---- scripts/doc-build.sh.orig	2011-09-17 23:00:44.000000000 +0200
-+++ scripts/doc-build.sh	2011-09-17 23:01:06.000000000 +0200
-@@ -12,7 +12,7 @@
- dest=$2
- name=$(basename ${src%.*})
- date=$(date -u +'%Y-%M-%d %H:%m:%S')
--version=$(npm -v)
-+version=@@_VERSION_@@
- 
- mkdir -p $(dirname $dest)
- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110925/c70b20e8/attachment.html>


More information about the macports-changes mailing list