homebrew-core/Formula/galen.rb

29 lines
967 B
Ruby
Raw Normal View History

class Galen < Formula
desc "Automated testing of look and feel for responsive websites"
homepage "http://galenframework.com/"
url "https://github.com/galenframework/galen/releases/download/galen-2.1.3/galen-bin-2.1.3.zip"
sha256 "d1de7ccd09b46f5a49e7edd7ae59fb7be1ea02587359c87d097bd06a400a03fe"
2015-04-07 21:49:50 +00:00
bottle do
2015-09-11 22:37:06 +00:00
cellar :any_skip_relocation
2015-12-03 21:21:00 +00:00
sha256 "2c50e9a0f39897ffe312bf824fd794eb523d4f75593bc238579ce23d845d7b32" => :el_capitan
sha256 "b49698fc9eaf74f1a14793750aab2ca9338236704fd09f691b1cb5737e3168b7" => :yosemite
sha256 "f1929d8d35e9044e73edf225be7c95eb3e1c0eeae745c8604bf239fccbb33aba" => :mavericks
2015-04-07 21:49:50 +00:00
end
2015-01-30 09:27:42 +00:00
depends_on :java => "1.6+"
def install
libexec.install "galen.jar"
2015-01-25 11:11:08 +00:00
(bin/"galen").write <<-EOS.undent
#!/bin/sh
set -e
java -cp "#{libexec}/galen.jar:lib/*:libs/*" com.galenframework.GalenMain "$@"
2015-01-25 11:11:08 +00:00
EOS
end
test do
assert_match "Version: #{version}", shell_output("#{bin}/galen -v")
end
end