This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

New formula: Grails 2.1.x

Closes #92.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent 8149442 commit a580243fe1ce82d46c180254725c0a887a6cd448 @dennislaumen dennislaumen committed with jacknagel Mar 20, 2013
Showing with 18 additions and 0 deletions.
  1. +18 −0 grails21.rb
View
@@ -0,0 +1,18 @@
+require 'formula'
+
+class Grails21 < Formula
+ homepage 'http://grails.org'
+ url 'http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.1.4.zip'
+ sha1 '049f1444a1d95dbf48e268acd9d1eef42c845da6'
+
+ def install
+ 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
+ end
+end

0 comments on commit a580243

Please sign in to comment.