From 194b2c6d0657bdd85f5bc49bf2fd63b16fb6410c Mon Sep 17 00:00:00 2001 From: Gabriel Reis Date: Sun, 25 May 2014 15:40:09 -0400 Subject: [PATCH] ant: add option to install with ivy Closes Homebrew/homebrew#29573. Signed-off-by: Jack Nagel --- Formula/ant.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Formula/ant.rb b/Formula/ant.rb index 19aafb6967..d14ef32ea9 100644 --- a/Formula/ant.rb +++ b/Formula/ant.rb @@ -14,10 +14,22 @@ class Ant < Formula 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 rm Dir['bin/*.{bat,cmd,dll,exe}'] libexec.install Dir['*'] bin.install_symlink Dir["#{libexec}/bin/*"] + if build.with? "ivy" + resource("ivy").stage do + (libexec/"lib").install Dir["ivy-*.jar"] + end + end end test do