Files
tigerbrew/Library/Formula/phantomjs.rb
T
Fábio M. Costa c8ae355bd6 Update PhantomJS to 1.5.0.
Use the upstream binaries to avoid building a copy of Qt.

Fixes #11225.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-04-01 15:04:13 +10:00

31 lines
693 B
Ruby

require 'formula'
class NeedsSnowLeopardOrNewer < Requirement
def satisfied?
MacOS.snow_leopard?
end
def message
"PhantomJS requires Mac OS X 10.6 (Snow Leopard) or newer."
end
end
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