Files
tigerbrew/Library/Formula/phantomjs.rb
T
Prashant Nadarajan 1a69283250 phantomjs 1.8.2
Closes #18248.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-05 08:57:26 +00:00

23 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.2-macosx.zip'
sha1 '904a89cd5df585e69cba20c6502e5c6d32b3be86'
depends_on SnowLeopardOrNewer
def install
bin.install 'bin/phantomjs'
(share+'phantomjs').install 'examples'
end
end