aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2015-02-02 13:01:00 +0000
committerMike McQuaid2015-02-02 14:07:29 +0000
commit0f79de11e2ed0368f03073bc950f65d1ef59a16b (patch)
treef4d38549aea669db00d947713822e31786f59f31 /Library/Formula
parent87544e16221ca20fe5a98379cac06f4ca4e2e676 (diff)
downloadhomebrew-0f79de11e2ed0368f03073bc950f65d1ef59a16b.tar.bz2
phantomjs 2.0.0
Closes #36240. Closes #36461. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/phantomjs.rb15
1 files changed, 10 insertions, 5 deletions
diff --git a/Library/Formula/phantomjs.rb b/Library/Formula/phantomjs.rb
index e3e15324a..d37de7f2a 100644
--- a/Library/Formula/phantomjs.rb
+++ b/Library/Formula/phantomjs.rb
@@ -4,8 +4,8 @@ class Phantomjs < Formula
homepage "http://www.phantomjs.org/"
stable do
- url "https://github.com/ariya/phantomjs/archive/1.9.8.tar.gz"
- sha256 "3a321561677f678ca00137c47689e3379c7fe6b83f7597d2d5de187dd243f7be"
+ url "https://github.com/ariya/phantomjs/archive/2.0.0.tar.gz"
+ sha256 "0a1338464ca37314037d139b3e0f7368325f5d8810628d9d9f2df9f9f535d407"
end
bottle do
@@ -15,14 +15,19 @@ class Phantomjs < Formula
sha1 "c43984e9ffb64d628f27b64bae5b75cbfd9dcfc2" => :mountain_lion
end
+ # Qt Yosemite build fix. Upstream commit/PR:
+ # https://qt.gitorious.org/qt/qtbase/commit/70e442
+ # https://github.com/ariya/phantomjs/pull/12934
+ patch do
+ url "https://gist.githubusercontent.com/mikemcquaid/db645f7cbeec4f3b1b2e/raw/e664ecc5c259344d5a73a84b52e472bf8ad3733e/phantomjs-yosemite.patch"
+ sha1 "1e723f055ef5df9a2945cbce3e70322105313f47"
+ end
+
head "https://github.com/ariya/phantomjs.git"
depends_on "openssl"
def install
- 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,
"--qt-config", "-openssl-linked"
bin.install "bin/phantomjs"