homebrew-core/Formula/maven.rb

23 lines
535 B
Ruby
Raw Normal View History

require 'formula'
class Maven <Formula
url 'http://www.apache.org/dist/maven/binaries/apache-maven-3.0-bin.tar.gz'
homepage 'http://maven.apache.org/'
md5 '505560ca377b990a965c4e4f8da42daa'
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