diff options
| author | Mike McQuaid | 2014-05-13 11:12:57 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-05-13 11:29:37 +0100 |
| commit | 0c912feebff9aa076e23ad2642b14a4ea8a4798d (patch) | |
| tree | 64eeeede56b72071d21a0e8512f4cc19d6cf131d /Library/Formula | |
| parent | aeb67298a15e4cf6421113189ca571785ecc08a2 (diff) | |
| download | homebrew-0c912feebff9aa076e23ad2642b14a4ea8a4798d.tar.bz2 | |
phantomjs: general tweaks and cleanup.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/phantomjs.rb | 11 |
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 |
