2011-01-25 22:39:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Phantomjs < Formula
|
2011-09-25 10:43:13 +00:00
|
|
|
url "https://phantomjs.googlecode.com/files/phantomjs-1.3.0-source.tar.gz"
|
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-09-25 10:43:13 +00:00
|
|
|
sha1 "76902ad0956cf212cc9bb845f290690f53eca576"
|
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"
|
2011-09-25 10:43:13 +00:00
|
|
|
bin.install "bin/phantomjs"
|
2011-01-25 22:39:18 +00:00
|
|
|
end
|
|
|
|
end
|