11class Iojs < Formula
22 homepage "https://iojs.org/"
3- url "https://iojs.org/dist/v2.4 .0/iojs-v2.4 .0.tar.xz"
4- sha256 "0081746e2e4b49c95ddbbaa6394960af2c719465c3ddab3bee58637b574eca45 "
3+ url "https://iojs.org/dist/v2.5 .0/iojs-v2.5 .0.tar.xz"
4+ sha256 "0ad1bca083cbdf9a67fc55e1b1d47d8cc3bc6473e4a3af083c9f67ace3e7e75e "
55
66 conflicts_with "node" , :because => "io.js includes a symlink named node for compatibility."
77
@@ -12,8 +12,8 @@ class Iojs < Formula
1212 depends_on :python => :build
1313
1414 resource "npm" do
15- url "https://registry.npmjs.org/npm/-/npm-2.13.0 .tgz"
16- sha256 "734d970d74748e4172d1458e68ef047037d60a7ade4e68a0bcf1788582360dec "
15+ url "https://registry.npmjs.org/npm/-/npm-2.13.2 .tgz"
16+ sha256 "e9714e307b3ab13630ab0e32de35405e522802ba755f502edca81c4c6b60bec8 "
1717 end
1818
1919 def install
@@ -33,11 +33,6 @@ def install
3333 ENV [ "NPM_CONFIG_LOGLEVEL" ] = "verbose"
3434
3535 cd buildpath /"npm_install" do
36- # Patch node-gyp until github.com/TooTallNate/node-gyp/pull/564 is resolved
37- # Patch extracted from https://github.com/iojs/io.js/commit/82227f3
38- p = Patch . create ( :p1 , :DATA )
39- p . path = Pathname . new ( __FILE__ ) . expand_path
40- p . apply
4136 system "./configure" , "--prefix=#{ libexec } /npm"
4237 system "make" , "install"
4338 end
@@ -127,27 +122,3 @@ def caveats
127122 end
128123 end
129124end
130-
131- __END__
132- diff --git a/node_modules/node-gyp/lib/install.js b/node_modules/node-gyp/lib/install.js
133- index 6f72e6a..ebc4e57 100644
134- --- a/node_modules/node-gyp/lib/install.js
135- +++ b/node_modules/node-gyp/lib/install.js
136- @@ -39,7 +39,7 @@ function install (gyp, argv, callback) {
137- }
138- }
139-
140- - var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'http://nodejs.org/dist'
141- + var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'https://iojs.org/dist'
142-
143-
144- // Determine which node dev files version we are installing
145- @@ -185,7 +185,7 @@ function install (gyp, argv, callback) {
146-
147- // now download the node tarball
148- var tarPath = gyp.opts['tarball']
149- - var tarballUrl = tarPath ? tarPath : distUrl + '/v' + version + '/node-v' + version + '.tar.gz'
150- + var tarballUrl = tarPath ? tarPath : distUrl + '/v' + version + '/iojs-v' + version + '.tar.gz'
151- , badDownload = false
152- , extractCount = 0
153- , gunzip = zlib.createGunzip()
0 commit comments