homebrew-core/Formula/maven.rb

23 lines
537 B
Ruby
Raw Normal View History

require 'formula'
class Maven <Formula
2010-11-26 17:28:32 +00:00
url 'http://www.apache.org/dist/maven/binaries/apache-maven-3.0.1-bin.tar.gz'
homepage 'http://maven.apache.org/'
2010-11-26 17:28:32 +00:00
md5 '98379efcef6b07bc44c27ec8382ad366'
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