aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMatt Passell2010-09-15 13:14:14 -0400
committerAdam Vandenberg2010-09-15 10:28:05 -0700
commitacbeb82adaa407fd08a30bdda0a9a5fb10510495 (patch)
tree89744dafd8a52fa979c3ca34381ba6136d5bf8d7 /Library
parent2658d637a054f03d936dad32fb66ab7944da492a (diff)
downloadhomebrew-acbeb82adaa407fd08a30bdda0a9a5fb10510495.tar.bz2
Update Formula: gradle, add HEAD URL
Instead of using a custom --devel option, use the existing --HEAD feature, similarly to the way it's used in the maven formula. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gradle.rb21
1 files changed, 17 insertions, 4 deletions
diff --git a/Library/Formula/gradle.rb b/Library/Formula/gradle.rb
index 0297fa826..a6e9d58d2 100644
--- a/Library/Formula/gradle.rb
+++ b/Library/Formula/gradle.rb
@@ -1,14 +1,27 @@
require 'formula'
class Gradle <Formula
- url 'http://dist.codehaus.org/gradle/gradle-0.8-all.zip'
homepage 'http://www.gradle.org/'
- version '0.8'
- md5 '73a0ed51b6ec00a7d3a9d242d51aae60'
+ url 'http://dist.codehaus.org/gradle/gradle-0.8-all.zip'
+ head 'http://dist.codehaus.org/gradle/gradle-0.9-rc-1-all.zip'
+
+ if ARGV.build_head?
+ version '0.9-rc-1'
+ md5 'f216f7a76ca097a310ab653d839980c0'
+ else
+ version '0.8'
+ md5 '73a0ed51b6ec00a7d3a9d242d51aae60'
+ end
def install
rm_f Dir["bin/*.bat"]
- libexec.install %w[bin lib gradle-imports plugin.properties]
+
+ if ARGV.build_head?
+ libexec.install %w[bin lib]
+ else
+ libexec.install %w[bin lib gradle-imports plugin.properties]
+ end
+
bin.mkpath
ln_s libexec+('bin/gradle'), bin
end