diff options
Diffstat (limited to 'Library')
| -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 |
