From 77e0cebe0695b56ccf070903552cdb4c5ddb9665 Mon Sep 17 00:00:00 2001 From: lsliwko Date: Fri, 19 Sep 2014 16:51:57 +0100 Subject: ant: add option to build with bcel library Closes #32430. Signed-off-by: Jack Nagel --- Library/Formula/ant.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/ant.rb b/Library/Formula/ant.rb index d14ef32ea..aaf4c4763 100644 --- a/Library/Formula/ant.rb +++ b/Library/Formula/ant.rb @@ -15,12 +15,18 @@ class Ant < Formula keg_only :provided_by_osx if MacOS.version < :mavericks option "with-ivy", "Install ivy dependency manager" + option "with-bcel", "Install Byte Code Engineering Library" 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 + resource "bcel" do + url "http://central.maven.org/maven2/org/apache/bcel/bcel/5.2/bcel-5.2.jar" + sha1 "96b2cefeb067c08c31225d48e2a689f814baae25" + end + def install rm Dir['bin/*.{bat,cmd,dll,exe}'] libexec.install Dir['*'] @@ -30,6 +36,11 @@ class Ant < Formula (libexec/"lib").install Dir["ivy-*.jar"] end end + if build.with? "bcel" + resource("bcel").stage do + (libexec/"lib").install Dir["bcel-*.jar"] + end + end end test do -- cgit v1.2.3