mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 03:19:46 -05:00
Use the upstream binaries to avoid building a copy of Qt. Fixes #11225. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
31 lines
693 B
Ruby
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
|