diff options
| author | David Gageot | 2010-09-01 16:51:57 +0200 |
|---|---|---|
| committer | David Höppner | 2010-09-01 17:45:41 +0200 |
| commit | 5ad392b4197e083b00a076f0ba1b1b8ab3aee0cb (patch) | |
| tree | 102ca33c32e39d5c8e9a149a3aaad250b1c865e5 /Library/Formula/maven.rb | |
| parent | af8f1820b99a00c14d1be7242a67e6032218c27f (diff) | |
| download | homebrew-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.rb | 12 |
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 |
