Update PhantomJS to 1.5.0.

Use the upstream binaries to avoid building a copy of Qt.

Fixes Homebrew/homebrew#11225.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Fábio M. Costa 2012-04-01 15:03:21 -05:00 committed by Mike McQuaid
parent 95abfe5b41
commit 07b9c36710

View file

@ -1,16 +1,30 @@
require 'formula' require 'formula'
class Phantomjs < Formula class NeedsSnowLeopardOrNewer < Requirement
url "https://phantomjs.googlecode.com/files/phantomjs-1.4.1-source.tar.gz" def satisfied?
head "https://github.com/ariya/phantomjs.git" MacOS.snow_leopard?
homepage 'http://www.phantomjs.org/' end
sha1 "d9386aa3e36bdd31f069f5301e315a9c5d91f06a"
depends_on 'qt' def message
"PhantomJS requires Mac OS X 10.6 (Snow Leopard) or newer."
def install end
system "qmake -spec macx-g++" end
system "make"
bin.install "bin/phantomjs" class Phantomjs < Formula
url "http://phantomjs.googlecode.com/files/phantomjs-1.5.0-macosx-static.zip"
homepage 'http://www.phantomjs.org/'
sha1 'b87152ce691e7ed1937d30f86bc706a408d47f64'
depends_on NeedsSnowLeopardOrNewer.new
def install
bin.install "bin/phantomjs"
end
def caveats; <<-EOS.undent
PhantomJS in Homebrew currently does not hide the dock icon.
For more information see:
http://code.google.com/p/phantomjs/issues/detail?id=281
EOS
end end
end end