homebrew-core/Formula/gradle.rb
Matt Passell 10862a738a Update gradle HEAD to 0.9-rc-3
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-18 20:02:33 -08:00

28 lines
611 B
Ruby

require 'formula'
class Gradle <Formula
homepage 'http://www.gradle.org/'
url 'http://dist.codehaus.org/gradle/gradle-0.8-all.zip'
head 'http://dist.codehaus.org/gradle/gradle-0.9-rc-3-all.zip'
if ARGV.build_head?
version '0.9-rc-3'
md5 'ec578c2069a30fb8b5f669df6a72034d'
else
version '0.8'
md5 '73a0ed51b6ec00a7d3a9d242d51aae60'
end
def install
rm_f Dir["bin/*.bat"]
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
end