homebrew-core/Formula/phantomjs.rb

23 lines
510 B
Ruby
Raw Normal View History

require 'formula'
2012-06-07 05:33:39 +00:00
class SnowLeopardOrNewer < Requirement
2013-01-20 02:45:59 +00:00
satisfy MacOS.version >= :snow_leopard
def message
"PhantomJS requires Mac OS X 10.6 (Snow Leopard) or newer."
end
end
2011-03-10 05:11:03 +00:00
class Phantomjs < Formula
homepage 'http://www.phantomjs.org/'
url 'http://phantomjs.googlecode.com/files/phantomjs-1.9.1-macosx.zip'
sha1 '9c165cd1eb79fcb535a315ae096da4c0f0f8f6a2'
2013-01-27 22:49:44 +00:00
depends_on SnowLeopardOrNewer
def install
bin.install 'bin/phantomjs'
2013-02-22 17:35:26 +00:00
(share+'phantomjs').install 'examples'
end
end