aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/phantomjs.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/Library/Formula/phantomjs.rb b/Library/Formula/phantomjs.rb
index ce07691f7..4798f85f0 100644
--- a/Library/Formula/phantomjs.rb
+++ b/Library/Formula/phantomjs.rb
@@ -19,17 +19,16 @@ class Phantomjs < Formula
end
def install
- inreplace 'src/qt/preconfig.sh', '-arch x86', '-arch x86_64' if MacOS.prefer_64_bit?
- args = ['--confirm', '--qt-config']
- system './build.sh', *args
- bin.install 'bin/phantomjs'
- (share+'phantomjs').install 'examples'
+ inreplace "src/qt/preconfig.sh", "-arch x86", "-arch x86_64" if MacOS.prefer_64_bit?
+ system "./build.sh", "--confirm", "--jobs", ENV.make_jobs
+ bin.install "bin/phantomjs"
+ (share+"phantomjs").install "examples"
end
test do
path = testpath/"test.js"
path.write <<-EOS
- console.log('hello');
+ console.log("hello");
phantom.exit();
EOS