homebrew-core/Formula/grails@2.5.rb

28 lines
768 B
Ruby

class GrailsAT25 < Formula
desc "Web application framework for the Groovy language"
homepage "https://grails.org"
url "https://github.com/grails/grails-core/releases/download/v2.5.6/grails-2.5.6.zip"
sha256 "58c1283d7748449bc3cecf8c9fe883157f2a279fa75ff14aa6d6388461527187"
bottle :unneeded
depends_on :java
def install
rm_f Dir["bin/*.bat", "bin/cygrails", "*.bat"]
prefix.install %w[LICENSE README]
libexec.install Dir["*"]
bin.mkpath
Dir["#{libexec}/bin/*"].each do |f|
next unless File.extname(f).empty?
ln_s f, bin+File.basename(f)
end
end
test do
ENV["JAVA_HOME"] = `/usr/libexec/java_home`.chomp
assert_match "Grails version: #{version}",
shell_output("#{bin}/grails --version")
end
end