2010-02-13 20:14:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Grails <Formula
|
2010-12-22 14:40:48 +00:00
|
|
|
url 'http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-1.3.6.zip'
|
2010-02-13 20:14:25 +00:00
|
|
|
homepage 'http://grails.org'
|
2010-12-22 14:40:48 +00:00
|
|
|
md5 '56fc68a118ca9c65e2c4391c3226a120'
|
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
|