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?
|
2012-09-05 04:04:01 +00:00
|
|
|
MacOS.version >= :snow_leopard
|
2012-04-28 21:44:26 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-09-28 05:32:57 +00:00
|
|
|
class GoogleJsTest < Formula
|
|
|
|
homepage 'http://code.google.com/p/google-js-test/'
|
2012-10-23 22:53:57 +00:00
|
|
|
url 'http://google-js-test.googlecode.com/files/gjstest-1.0.8.tar.bz2'
|
|
|
|
sha1 '2209dd0c700f9420e29a844920f8614e3d97156d'
|
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
|