2011-09-28 05:32:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-04-28 21:44:26 +00:00
|
|
|
class NeedsSnowLeopard < Requirement
|
|
|
|
def message
|
|
|
|
"Google JS Test requires Mac OS X 10.6 (Snow Leopard) or newer."
|
|
|
|
end
|
|
|
|
|
|
|
|
def satisfied?
|
|
|
|
MacOS.snow_leopard?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-09-28 05:32:57 +00:00
|
|
|
class GoogleJsTest < Formula
|
|
|
|
homepage 'http://code.google.com/p/google-js-test/'
|
2012-04-28 21:44:26 +00:00
|
|
|
url 'http://google-js-test.googlecode.com/files/gjstest-1.0.7.tar.bz2'
|
2012-01-12 06:49:59 +00:00
|
|
|
sha1 '8580cfe9c3ed2eca6e3c076bfc321048a6e4dd64'
|
2011-09-28 05:32:57 +00:00
|
|
|
|
2012-04-28 21:44:26 +00:00
|
|
|
depends_on NeedsSnowLeopard.new
|
2011-09-28 05:32:57 +00:00
|
|
|
depends_on 'gflags'
|
|
|
|
depends_on 'glog'
|
|
|
|
depends_on 'protobuf'
|
|
|
|
depends_on 're2'
|
|
|
|
depends_on 'v8'
|
|
|
|
|
|
|
|
def install
|
2012-04-28 21:44:26 +00:00
|
|
|
system "make", "PREFIX=#{prefix}"
|
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2011-09-28 05:32:57 +00:00
|
|
|
end
|
|
|
|
end
|