require 'formula' class Grails < Formula homepage 'http://grails.org' url 'http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.3.5.zip' sha1 '32a7acbabb22d6d78898f109a3b265ba83589a1b' 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_prefix}/libexec EOS end end