2015-01-22 15:41:30 +00:00
|
|
|
class Galen < Formula
|
|
|
|
homepage "http://galenframework.com/"
|
2015-05-05 21:29:38 +00:00
|
|
|
url "https://github.com/galenframework/galen/releases/download/galen-1.6.3/galen-bin-1.6.3.zip"
|
|
|
|
sha256 "efd7cac3c6aed1f8630dbfa2ee51069c1d7551df457036c600d93fbc3f9c6ebf"
|
2015-01-22 15:41:30 +00:00
|
|
|
|
2015-04-07 21:49:50 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-05-06 01:26:04 +00:00
|
|
|
sha256 "e7bb986e7077068b4864fc0136087793f6d3daa49821dc1a059946183d777463" => :yosemite
|
|
|
|
sha256 "60137c10b0433fbc729d2590fa2da15f1ddd3ee7cca6ee8ca4d216aa9e40a6a8" => :mavericks
|
|
|
|
sha256 "2c7d23e72734ca6387ee784539bc3458ad224b1cce4fa7f9d9539bf80981449f" => :mountain_lion
|
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
|
|
|
|
java -cp "#{libexec}/galen.jar:lib/*:libs/*" net.mindengine.galen.GalenMain "$@"
|
|
|
|
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
|