Files
tigerbrew/Library/Formula/phantomjs.rb
T
Alexander Surma 694681bc05 phantomjs 1.6.1
Closes #13568.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-24 10:59:02 -07:00

24 lines
484 B
Ruby

require 'formula'
class SnowLeopardOrNewer < 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
homepage 'http://www.phantomjs.org/'
url 'http://phantomjs.googlecode.com/files/phantomjs-1.6.1-macosx-static.zip'
sha1 '69a616fa035a815f05e1892e3ff795ef740f568b'
depends_on SnowLeopardOrNewer.new
def install
bin.install 'bin/phantomjs'
end
end