aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/maven.rb
diff options
context:
space:
mode:
authorDavid Gageot2010-09-01 16:51:57 +0200
committerDavid Höppner2010-09-01 17:45:41 +0200
commit5ad392b4197e083b00a076f0ba1b1b8ab3aee0cb (patch)
tree102ca33c32e39d5c8e9a149a3aaad250b1c865e5 /Library/Formula/maven.rb
parentaf8f1820b99a00c14d1be7242a67e6032218c27f (diff)
downloadhomebrew-5ad392b4197e083b00a076f0ba1b1b8ab3aee0cb.tar.bz2
maven: install jars in libexec to avoid conflicts
Signed-off-by: David Höppner <0xffea@gmail.com>
Diffstat (limited to 'Library/Formula/maven.rb')
-rw-r--r--Library/Formula/maven.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/maven.rb b/Library/Formula/maven.rb
index 9a6579519..3e883d178 100644
--- a/Library/Formula/maven.rb
+++ b/Library/Formula/maven.rb
@@ -12,7 +12,17 @@ class Maven <Formula
end
def install
+ # Remove windows files
rm_f Dir["bin/*.bat"]
- prefix.install %w[bin conf boot lib]
+
+ # 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