homebrew-core/Formula/maven.rb
David Gageot b87d336b5f update Maven HEAD to 3.0beta3
Signed-off-by: David Höppner <0xffea@gmail.com>
2010-09-03 18:40:50 +02:00

28 lines
704 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-3-bin.tar.gz'
homepage 'http://maven.apache.org/'
if ARGV.build_head?
md5 'b11cf59c8a4cd36741243267c58cf6a0'
else
md5 '3f829ed854cbacdaca8f809e4954c916'
end
def install
# Remove windows files
rm_f Dir["bin/*.bat"]
# Install jars in libexec to avoid conflicts
prefix.install %w{ NOTICE.txt LICENSE.txt README.txt }
libexec.install Dir['*']
# Symlink binaries
bin.mkpath
Dir["#{libexec}/bin/*"].each do |f|
ln_s f, bin+File.basename(f)
end
end
end