homebrew-core/Formula/galen.rb

29 lines
956 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-1.6.4/galen-bin-1.6.4.zip"
sha256 "f81fb9af846662fd89778654d13246184561fde11a23b67e23b144cfac56f88c"
2015-04-07 21:49:50 +00:00
bottle do
cellar :any
2015-06-16 22:15:14 +00:00
sha256 "a8896697000cc717132626a3a5594f6a1f4c2dd8a3a6b51b380e14204621b724" => :yosemite
sha256 "061e77f0cd75b2ddbf2c372373f5d7ae7e72546b2bd43dba8c0dbd43fd62ca9c" => :mavericks
sha256 "97b5096a5a3130854aca1dd34b0a1b6f1e5f31c3364ff77be6900e0e6342922f" => :mountain_lion
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/*" net.mindengine.galen.GalenMain "$@"
EOS
end
test do
assert_match "Version: #{version}", shell_output("#{bin}/galen -v")
end
end