Skip to content

Commit 29f0907

Browse files
committed
Merge pull request #21 from hmalphettes/master
Upgrade to iojs-2.5.0 and no more patching node-gyp
2 parents fff95d6 + 465ad87 commit 29f0907

File tree

1 file changed

+4
-33
lines changed

1 file changed

+4
-33
lines changed

Formula/iojs.rb

+4-33
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class 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
129124
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

Comments
 (0)