aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorChristian Moritz2017-06-26 20:35:48 +0200
committerChristian Moritz2017-06-29 20:29:25 +0200
commit02113e2714aae818ee2c43e203137b3cd0b61ced (patch)
tree97cb021be0c8c48f8f214f20a583867356910b5a /Library
parent7d8124f339aeffb7b444f460b581d13668f953c3 (diff)
downloadbrew-02113e2714aae818ee2c43e203137b3cd0b61ced.tar.bz2
language/node: build native addons from source
By telling node-pre-gyp and prebuild to don't pull prebuild binaries and instead build them from source. This still may not work for some custom third party scripts for pulling prebuild binaries.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/language/node.rb6
-rw-r--r--Library/Homebrew/test/language/node_spec.rb2
2 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/language/node.rb b/Library/Homebrew/language/node.rb
index 6aaeacbea..98d376766 100644
--- a/Library/Homebrew/language/node.rb
+++ b/Library/Homebrew/language/node.rb
@@ -44,6 +44,7 @@ module Language
%W[
-ddd
--global
+ --build-from-source
--prefix=#{libexec}
#{Dir.pwd}/#{pack}
]
@@ -52,7 +53,10 @@ module Language
def self.local_npm_install_args
setup_npm_environment
# npm install args for local style module format
- ["-ddd"]
+ %w[
+ -ddd
+ --build-from-source
+ ]
end
end
end
diff --git a/Library/Homebrew/test/language/node_spec.rb b/Library/Homebrew/test/language/node_spec.rb
index 4116c8581..55bb1574e 100644
--- a/Library/Homebrew/test/language/node_spec.rb
+++ b/Library/Homebrew/test/language/node_spec.rb
@@ -41,6 +41,6 @@ describe Language::Node do
specify "#local_npm_install_args" do
resp = subject.local_npm_install_args
- expect(resp).to include("-ddd")
+ expect(resp).to include("-ddd", "--build-from-source")
end
end