ant: add option to install with ivy
Closes Homebrew/homebrew#29573. Signed-off-by: Jack Nagel <jacknagel@gmail.com>master
parent
93b939e526
commit
194b2c6d06
|
@ -14,10 +14,22 @@ class Ant < Formula
|
||||||
|
|
||||||
keg_only :provided_by_osx if MacOS.version < :mavericks
|
keg_only :provided_by_osx if MacOS.version < :mavericks
|
||||||
|
|
||||||
|
option "with-ivy", "Install ivy dependency manager"
|
||||||
|
|
||||||
|
resource "ivy" do
|
||||||
|
url "http://www.apache.org/dyn/closer.cgi?path=ant/ivy/2.3.0/apache-ivy-2.3.0-bin.tar.gz"
|
||||||
|
sha1 "878fab43ee9c70486a9ecec1ec44a2f034401687"
|
||||||
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
rm Dir['bin/*.{bat,cmd,dll,exe}']
|
rm Dir['bin/*.{bat,cmd,dll,exe}']
|
||||||
libexec.install Dir['*']
|
libexec.install Dir['*']
|
||||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||||
|
if build.with? "ivy"
|
||||||
|
resource("ivy").stage do
|
||||||
|
(libexec/"lib").install Dir["ivy-*.jar"]
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
Loading…
Reference in New Issue