homebrew-core/Formula/phantomjs.rb
aaronchi b2887560bd PhantomJS 1.8.0
Closes Homebrew/homebrew#16721.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-23 12:56:20 -06:00

23 lines
488 B
Ruby

require 'formula'
class SnowLeopardOrNewer < Requirement
def satisfied?
MacOS.version >= :snow_leopard
end
def message
"PhantomJS requires Mac OS X 10.6 (Snow Leopard) or newer."
end
end
class Phantomjs < Formula
homepage 'http://www.phantomjs.org/'
url 'http://phantomjs.googlecode.com/files/phantomjs-1.8.0-macosx.zip'
sha1 'c54cb3bbeda39a7d332d92d79dc64971785876cc'
depends_on SnowLeopardOrNewer.new
def install
bin.install 'bin/phantomjs'
end
end