ant: use wrapper script to set lib.

This commit is contained in:
Mike McQuaid 2015-07-09 11:20:16 +01:00
parent ab28c7c720
commit eee714a5b9

View file

@ -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"]