require "formula" class AntContrib < Formula 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" sha1 "05b74808d51f501a993457fb9b7871484acba901" version "1.0b3" depends_on "ant" def install libexec.install "lib", "ant-contrib-1.0b3.jar" share.install "docs" end test do (testpath/"build.xml").write <<-EOS.undent EOS system Formula["ant"].opt_bin/"ant", "-lib", libexec end end