2014-03-26 02:17:45 +00:00
|
|
|
class AntContrib < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Collection of tasks for Apache Ant"
|
2014-03-26 02:17:45 +00:00
|
|
|
homepage "http://ant-contrib.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "6e58c2ee65e1f4df031796d512427ea213a92ae40c5fc0b38d8ac82701f42a3c"
|
2014-03-26 02:17:45 +00:00
|
|
|
version "1.0b3"
|
|
|
|
|
|
|
|
depends_on "ant"
|
|
|
|
|
|
|
|
def install
|
2015-07-09 10:20:35 +00:00
|
|
|
(share+"ant").install "ant-contrib-1.0b3.jar"
|
2014-03-26 02:17:45 +00:00
|
|
|
share.install "docs"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"build.xml").write <<-EOS.undent
|
|
|
|
<project name="HomebrewTest" default="init" basedir=".">
|
|
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
|
|
|
|
<target name="init">
|
|
|
|
<if>
|
|
|
|
<equals arg1="BREW" arg2="BREW" />
|
|
|
|
<then>
|
|
|
|
<echo message="Test passes!"/>
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
</target>
|
|
|
|
</project>
|
|
|
|
EOS
|
2015-07-09 10:20:35 +00:00
|
|
|
system Formula["ant"].opt_bin/"ant"
|
2014-03-26 02:17:45 +00:00
|
|
|
end
|
|
|
|
end
|