ab4584818c
Closes Homebrew/homebrew#43792. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
24 lines
683 B
Ruby
24 lines
683 B
Ruby
class Grails < Formula
|
|
desc "Web application framework for the Groovy language"
|
|
homepage "https://grails.org"
|
|
url "https://github.com/grails/grails-core/releases/download/v3.0.6/grails-3.0.6.zip"
|
|
sha256 "a968ba44ae8b5c8d68102ba55a3834a6723602b07dc32abd23b93449e2543183"
|
|
|
|
def install
|
|
rm_f Dir["bin/*.bat", "bin/cygrails", "*.bat"]
|
|
prefix.install_metafiles
|
|
libexec.install Dir["*"]
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
The GRAILS_HOME directory is:
|
|
#{opt_libexec}
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
output = shell_output("#{bin}/grails --version")
|
|
assert_match /Grails Version: #{version}/, output
|
|
end
|
|
end
|