1
1
class Iojs < Formula
2
2
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 "
5
5
6
6
conflicts_with "node" , :because => "io.js includes a symlink named node for compatibility."
7
7
@@ -12,8 +12,8 @@ class Iojs < Formula
12
12
depends_on :python => :build
13
13
14
14
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 "
17
17
end
18
18
19
19
def install
@@ -33,11 +33,6 @@ def install
33
33
ENV [ "NPM_CONFIG_LOGLEVEL" ] = "verbose"
34
34
35
35
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
41
36
system "./configure" , "--prefix=#{ libexec } /npm"
42
37
system "make" , "install"
43
38
end
@@ -127,27 +122,3 @@ def caveats
127
122
end
128
123
end
129
124
end
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