2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-11 20:52:51 +00:00
|
|
|
|
|
|
|
class Maven <Formula
|
2010-03-07 06:27:19 +00:00
|
|
|
url 'http://www.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz'
|
2010-04-30 16:30:24 +00:00
|
|
|
head 'http://www.apache.org/dist/maven/binaries/apache-maven-3.0-beta-1-bin.tar.gz'
|
2010-03-07 06:27:19 +00:00
|
|
|
homepage 'http://maven.apache.org/'
|
2010-04-30 16:30:24 +00:00
|
|
|
|
|
|
|
if ARGV.include? "--HEAD"
|
|
|
|
md5 '82d43745cf2f2d1d939f1139a09d6654'
|
|
|
|
else
|
|
|
|
md5 '3f829ed854cbacdaca8f809e4954c916'
|
|
|
|
end
|
2009-09-11 20:52:51 +00:00
|
|
|
|
|
|
|
def install
|
2010-03-07 06:27:19 +00:00
|
|
|
rm_f Dir["bin/*.bat"]
|
2009-09-11 20:52:51 +00:00
|
|
|
prefix.install %w[bin conf boot lib]
|
|
|
|
end
|
|
|
|
end
|