homebrew-core/Formula/maven.rb
Adam Vandenberg 8c56f544b7 Add ARGV.build_head? and use it.
This allows both "--HEAD" and "-H" to be used consistently, which was the
intention in the first place.
2010-07-16 09:09:39 -07:00

18 lines
458 B
Ruby

require 'formula'
class Maven <Formula
url 'http://www.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz'
head 'http://www.apache.org/dist/maven/binaries/apache-maven-3.0-beta-1-bin.tar.gz'
homepage 'http://maven.apache.org/'
if ARGV.build_head?
md5 '82d43745cf2f2d1d939f1139a09d6654'
else
md5 '3f829ed854cbacdaca8f809e4954c916'
end
def install
rm_f Dir["bin/*.bat"]
prefix.install %w[bin conf boot lib]
end
end