2015-01-22 15:41:30 +00:00
|
|
|
class Galen < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Automated testing of look and feel for responsive websites"
|
2015-01-22 15:41:30 +00:00
|
|
|
homepage "http://galenframework.com/"
|
2015-12-09 00:38:44 +00:00
|
|
|
url "https://github.com/galenframework/galen/releases/download/galen-2.2.1/galen-bin-2.2.1.zip"
|
|
|
|
sha256 "1c7cc172a1d3a91ca6b949e2c4f12d8d957c1e5fa4be512aa4a6a021b01a30f6"
|
2015-01-22 15:41:30 +00:00
|
|
|
|
2015-04-07 21:49:50 +00:00
|
|
|
bottle do
|
2015-09-11 22:37:06 +00:00
|
|
|
cellar :any_skip_relocation
|
2015-12-09 01:25:57 +00:00
|
|
|
sha256 "8e2757741326c7310421e9cd917fba79e87c51b61a19c85084909acf29137798" => :el_capitan
|
|
|
|
sha256 "737875be2287799f19342a6a14c70185dd56ede79dbb8213de9b31edeed8b054" => :yosemite
|
|
|
|
sha256 "f95a0c017e09874d9b342c12e40bf4e8b75906070f67a5a479e45a81d41c66a1" => :mavericks
|
2015-04-07 21:49:50 +00:00
|
|
|
end
|
|
|
|
|
2015-01-30 09:27:42 +00:00
|
|
|
depends_on :java => "1.6+"
|
2015-01-22 15:41:30 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install "galen.jar"
|
2015-01-25 11:11:08 +00:00
|
|
|
(bin/"galen").write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2015-08-19 13:42:50 +00:00
|
|
|
java -cp "#{libexec}/galen.jar:lib/*:libs/*" com.galenframework.GalenMain "$@"
|
2015-01-25 11:11:08 +00:00
|
|
|
EOS
|
2015-01-22 15:41:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-01-27 13:24:25 +00:00
|
|
|
assert_match "Version: #{version}", shell_output("#{bin}/galen -v")
|
2015-01-22 15:41:30 +00:00
|
|
|
end
|
|
|
|
end
|