homebrew-core/Formula/phantomjs.rb
Mikael Henriksson d525361d27 phantomjs 1.8.1
Closes Homebrew/homebrew#16939.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-07 07:37:52 -08: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.1-macosx.zip'
sha1 '69206ce980703e54160628614a6917d8ec19c281'
depends_on SnowLeopardOrNewer.new
def install
bin.install 'bin/phantomjs'
end
end