homebrew-core/Formula/grails.rb

44 lines
1.3 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Grails < Formula
homepage 'http://grails.org'
url 'http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.1.0.zip'
sha1 'c0c6272aa7a85ab7e69df28d601245a0b823c68f'
def install
rm_f Dir["bin/*.bat", "bin/cygrails", "*.bat"]
prefix.install %w[LICENSE README]
libexec.install Dir['*']
2012-02-12 21:51:21 +00:00
bin.install_symlink Dir["#{libexec}/bin/*"]
end
2012-02-12 21:57:05 +00:00
def caveats; <<-EOS.undent
2012-02-12 21:51:21 +00:00
Notes On Upgrading Grails From Versions < 1.3.7
The directory layout has been changed slightly for versions >= 1.3.7
in order to conform with Homebrew conventions for installation of Java
jar files. Please note the following:
2012-02-12 21:57:05 +00:00
Before upgrading:
run 'brew unlink grails' (keeps old version in cellar)
or
run 'brew rm grails' (deletes old version from cellar)
2012-02-12 21:57:05 +00:00
and then:
run 'brew prune'
2012-02-12 21:57:05 +00:00
This is to ensure that HOMEBREW_PREFIX is cleaned of references to the
old version.
2012-02-12 21:57:05 +00:00
The Grails home directory for versions < 1.3.7 was in the form:
#{HOMEBREW_CELLAR}/grails/1.3.6
2012-02-12 21:57:05 +00:00
For versions >= 1.3.7, the Grails home directory is in the form:
#{libexec}
If you set the GRAILS_HOME variable explicitly in your shell environment,
change its value accordingly.
EOS
end
end