homebrew-core/Formula/maven.rb
Max Howell 77c73ecb89 Use Apache’s closer.cgi where appropriate
Some of these were pointing at archive.apache.org. Now they aren’t, I investigated for good rationale for using the archive before altering it.

mod_python still uses archive.apache.org as that is the only place it exists that I could find.

jsvc *now* uses apache.archive.org as the formula was otherwise broken and the binary tarball it needs no longer exists on the main mirrors.
2011-07-27 10:41:17 +01:00

25 lines
706 B
Ruby

require 'formula'
class Maven < Formula
url 'http://www.apache.org/dyn/closer.cgi?path=maven/binaries/apache-maven-3.0.3-bin.tar.gz'
homepage 'http://maven.apache.org/'
md5 '507828d328eb3735103c0492443ef0f0'
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
ln_s "#{libexec}/bin/mvn", bin+"mvn"
ln_s "#{libexec}/bin/mvnDebug", bin+"mvnDebug"
ln_s "#{libexec}/bin/mvnyjp", bin+"mvnyjp"
end
end