require 'formula' class Grails < Formula homepage 'http://grails.org' url 'http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.3.8.zip' sha1 '2a8896220c97d3ab14829f73e16d7f58e5e156bf' 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 end