24 lines
660 B
Ruby
24 lines
660 B
Ruby
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.2.3/galen-bin-2.2.3.zip"
|
|
sha256 "1857c44261dd7211318d572fa2c253f6349df374e4a5bbd0ce023d64f8ea7b8e"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on :java => "1.6+"
|
|
|
|
def install
|
|
libexec.install "galen.jar"
|
|
(bin/"galen").write <<-EOS.undent
|
|
#!/bin/sh
|
|
set -e
|
|
java -cp "#{libexec}/galen.jar:lib/*:libs/*" com.galenframework.GalenMain "$@"
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
assert_match "Version: #{version}", shell_output("#{bin}/galen -v")
|
|
end
|
|
end
|