aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-05-13 11:12:57 +0100
committerMike McQuaid2014-05-13 11:29:37 +0100
commit0c912feebff9aa076e23ad2642b14a4ea8a4798d (patch)
tree64eeeede56b72071d21a0e8512f4cc19d6cf131d
parentaeb67298a15e4cf6421113189ca571785ecc08a2 (diff)
downloadhomebrew-0c912feebff9aa076e23ad2642b14a4ea8a4798d.tar.bz2
phantomjs: general tweaks and cleanup.
-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