ant: add option to build with bcel library
Closes Homebrew/homebrew#32430. Signed-off-by: Jack Nagel <jacknagel@gmail.com>master
parent
5276ed4ea1
commit
ffbc81477d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue