homebrew-core/Formula/maven.rb
Jon Buffington db55fcfd54 Update maven to release 3.0.2.
Closes Homebrew/homebrew#3892.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-01-16 16:21:10 +00:00

25 lines
634 B
Ruby

require 'formula'
class Maven <Formula
url 'http://www.apache.org/dist/maven/binaries/apache-maven-3.0.2-bin.tar.gz'
homepage 'http://maven.apache.org/'
md5 '01496e49c1fae860cdf573c6316f85c4'
def install
# Remove windows files
rm_f Dir["bin/*.bat"]
# Fix the permissions on the global settings file.
chmod 0644, Dir["conf/settings.xml"]
# 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