homebrew-core/Formula/phantomjs.rb
2013-02-22 17:35:36 +00:00

22 lines
510 B
Ruby

require 'formula'
class SnowLeopardOrNewer < Requirement
satisfy MacOS.version >= :snow_leopard
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
def install
bin.install 'bin/phantomjs'
(share+'phantomjs').install 'examples'
end
end