diff options
| author | ojab | 2014-08-16 23:08:44 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-16 23:09:09 +0100 |
| commit | 8785b1ee084863ab889ba7eaaef45ba6bdd26dfe (patch) | |
| tree | 1b4ccfc74be4b05953fc90c8b240803175208f80 | |
| parent | 960af5956350552947a550c93ff568b68f9aa26e (diff) | |
| download | homebrew-8785b1ee084863ab889ba7eaaef45ba6bdd26dfe.tar.bz2 | |
phantomjs: add HEAD
Closes #31351.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/phantomjs.rb | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/Library/Formula/phantomjs.rb b/Library/Formula/phantomjs.rb index 0fe2cf863..d25ad74cc 100644 --- a/Library/Formula/phantomjs.rb +++ b/Library/Formula/phantomjs.rb @@ -2,8 +2,16 @@ require "formula" class Phantomjs < Formula homepage "http://www.phantomjs.org/" - url "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-source.zip" - sha1 "124b017d493d5ccabd22afaf078d0650ac048840" + + stable do + url "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-source.zip" + sha1 "124b017d493d5ccabd22afaf078d0650ac048840" + + patch do + url "https://github.com/ariya/phantomjs/commit/fe6a96.diff" + sha1 "d3efd38e0f3f0da08530d0bf603ea72ebdf06b78" + end + end bottle do cellar :any @@ -13,13 +21,14 @@ class Phantomjs < Formula sha1 "273dbe33d1edbdd034c903d919278d33d7ebe5dd" => :lion end - patch do - url "https://github.com/ariya/phantomjs/commit/fe6a96.diff" - sha1 "d3efd38e0f3f0da08530d0bf603ea72ebdf06b78" + head do + url "https://github.com/ariya/phantomjs.git" end def install - inreplace "src/qt/preconfig.sh", "-arch x86", "-arch x86_64" if MacOS.prefer_64_bit? + if build.stable? && MacOS.prefer_64_bit? + inreplace "src/qt/preconfig.sh", "-arch x86", "-arch x86_64" + end system "./build.sh", "--confirm", "--jobs", ENV.make_jobs bin.install "bin/phantomjs" (share+"phantomjs").install "examples" |
