2010-02-13 20:14:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Grails <Formula
|
2011-02-17 13:12:04 +00:00
|
|
|
url 'http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-1.3.7.zip'
|
2010-02-13 20:14:25 +00:00
|
|
|
homepage 'http://grails.org'
|
2011-02-17 13:12:04 +00:00
|
|
|
md5 'ea7cbfecdcf30c861f8faa8552ce3b46'
|
2010-02-13 20:14:25 +00:00
|
|
|
|
|
|
|
def install
|
2011-01-23 19:57:10 +00:00
|
|
|
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
|
2010-02-13 20:14:25 +00:00
|
|
|
end
|
2011-01-23 19:57:10 +00:00
|
|
|
end
|