homebrew-core/Formula/phantomjs.rb
William Bert baad6e1a72 phantomjs 1.9.1
Closes Homebrew/homebrew#20307.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-06 16:31:47 -05: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.9.1-macosx.zip'
sha1 '9c165cd1eb79fcb535a315ae096da4c0f0f8f6a2'
depends_on SnowLeopardOrNewer
def install
bin.install 'bin/phantomjs'
(share+'phantomjs').install 'examples'
end
end