diff options
| author | lsliwko | 2014-09-19 16:51:57 +0100 |
|---|---|---|
| committer | Jack Nagel | 2014-09-19 22:29:26 -0500 |
| commit | 77e0cebe0695b56ccf070903552cdb4c5ddb9665 (patch) | |
| tree | 980d8c17e3792fdc5250f269e188b53a8a9b5e99 /Library/Formula | |
| parent | d88cd6632e9d57aa94b808b067fad824b25f3b10 (diff) | |
| download | homebrew-77e0cebe0695b56ccf070903552cdb4c5ddb9665.tar.bz2 | |
ant: add option to build with bcel library
Closes #32430.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ant.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
