2011-01-25 22:39:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Phantomjs < Formula
|
2011-06-27 18:10:11 +00:00
|
|
|
url "http://phantomjs.googlecode.com/files/phantomjs-1.2.0-source.zip"
|
2011-05-27 05:02:55 +00:00
|
|
|
head "https://github.com/ariya/phantomjs.git"
|
2011-05-23 13:14:55 +00:00
|
|
|
homepage 'http://www.phantomjs.org/'
|
2011-06-27 18:10:11 +00:00
|
|
|
sha1 "0b8b20fbc45013ecf61dd988390dd979a894dec1"
|
2011-01-25 22:39:18 +00:00
|
|
|
|
|
|
|
depends_on 'qt'
|
|
|
|
|
|
|
|
def install
|
2011-03-09 07:14:17 +00:00
|
|
|
system "qmake -spec macx-g++"
|
2011-01-25 22:39:18 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "bin/phantomjs.app/Contents/MacOS/phantomjs"
|
|
|
|
end
|
|
|
|
end
|