aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/phantomjs.rb
blob: 07fc7d6ae17d8d38af735d036c129d70efe360db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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