2010-06-15 17:26:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gradle <Formula
|
|
|
|
homepage 'http://www.gradle.org/'
|
2010-09-15 17:14:14 +00:00
|
|
|
url 'http://dist.codehaus.org/gradle/gradle-0.8-all.zip'
|
2010-10-29 20:16:40 +00:00
|
|
|
head 'http://dist.codehaus.org/gradle/gradle-0.9-rc-2-all.zip'
|
2010-09-15 17:14:14 +00:00
|
|
|
|
|
|
|
if ARGV.build_head?
|
2010-10-29 20:16:40 +00:00
|
|
|
version '0.9-rc-2'
|
|
|
|
md5 '0fc5dcd67c826f136087f52c2692b5ac'
|
2010-09-15 17:14:14 +00:00
|
|
|
else
|
|
|
|
version '0.8'
|
|
|
|
md5 '73a0ed51b6ec00a7d3a9d242d51aae60'
|
|
|
|
end
|
2010-06-15 17:26:59 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
rm_f Dir["bin/*.bat"]
|
2010-09-15 17:14:14 +00:00
|
|
|
|
|
|
|
if ARGV.build_head?
|
|
|
|
libexec.install %w[bin lib]
|
|
|
|
else
|
|
|
|
libexec.install %w[bin lib gradle-imports plugin.properties]
|
|
|
|
end
|
|
|
|
|
2010-06-15 17:26:59 +00:00
|
|
|
bin.mkpath
|
|
|
|
ln_s libexec+('bin/gradle'), bin
|
|
|
|
end
|
|
|
|
end
|