ant: use wrapper script to set lib.
This commit is contained in:
parent
ab28c7c720
commit
eee714a5b9
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@ class Ant < Formula
|
|||
rm Dir["bin/*.{bat,cmd,dll,exe}"]
|
||||
libexec.install Dir["*"]
|
||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||
rm bin/"ant"
|
||||
(bin/"ant").write <<-EOS.undent
|
||||
#!/bin/sh
|
||||
#{libexec}/bin/ant -lib #{HOMEBREW_PREFIX}/share/ant "$@"
|
||||
EOS
|
||||
if build.with? "ivy"
|
||||
resource("ivy").stage do
|
||||
(libexec/"lib").install Dir["ivy-*.jar"]
|
||||
|
|
Loading…
Reference in a new issue