homebrew-core/Formula/maven.rb

21 lines
571 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Maven < Formula
homepage 'http://maven.apache.org/'
2012-02-12 22:44:51 +00:00
url 'http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz'
2012-01-20 21:52:27 +00:00
md5 'e513740978238cb9e4d482103751f6b7'
def install
# Remove windows files
rm_f Dir["bin/*.bat"]
# Fix the permissions on the global settings file.
chmod 0644, Dir["conf/settings.xml"]
prefix.install %w{ NOTICE.txt LICENSE.txt README.txt }
2012-02-12 22:44:51 +00:00
# Install jars in libexec to avoid conflicts
libexec.install Dir['*']
2012-02-12 22:44:51 +00:00
bin.install_symlink Dir["#{libexec}/bin/*"]
end
end