2011-01-25 22:39:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Phantomjs < Formula
|
2011-05-23 13:14:55 +00:00
|
|
|
url "http://phantomjs.googlecode.com/files/phantomjs-1.1.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/'
|
|
|
|
sha1 "11b6023c9b2bd3e5f7dc7e3d4e4ce24588a3d396"
|
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
|