2015-01-22 15:41:30 +00:00
|
|
|
class Galen < Formula
|
|
|
|
homepage "http://galenframework.com/"
|
2015-04-07 21:01:41 +00:00
|
|
|
url "https://github.com/galenframework/galen/releases/download/galen-1.6.2/galen-bin-1.6.2.zip"
|
|
|
|
sha256 "e4978a79e8acc854a94999b83398490b5600ed67450d0adc9b0bb319be3a70d6"
|
2015-01-22 15:41:30 +00:00
|
|
|
|
2015-04-07 21:49:50 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "f1d64ada4b7bfb1fa27e9f1b849a385c316f76b3f677e8fbd002c9d0c6460b34" => :yosemite
|
|
|
|
sha256 "334ad1672f09933ff04da6ff48f777408167143e077aabb4b8cdbe7f42552e62" => :mavericks
|
|
|
|
sha256 "e5a9b03e0a764bef6a4e0efa19ba89e18d4d1b63157dd0e77e6fa97740182a33" => :mountain_lion
|
|
|
|
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
|