ef5dc79a16
Closes #953. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
23 lines
660 B
Ruby
23 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.5/galen-bin-2.2.5.zip"
|
|
sha256 "651e06397dd51cae9403d26a851868cfd144e1ff2a9dd6b54a91ab1a69e7ea6f"
|
|
|
|
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
|