class AntContrib < Formula desc "Collection of tasks for Apache Ant" 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" version "1.0b3" sha256 "6e58c2ee65e1f4df031796d512427ea213a92ae40c5fc0b38d8ac82701f42a3c" bottle :unneeded depends_on "ant" def install (share+"ant").install "ant-contrib-1.0b3.jar" share.install "docs" end test do (testpath/"build.xml").write <<-EOS.undent EOS system Formula["ant"].opt_bin/"ant" end end