class DitaOt < Formula desc "DITA Open Toolkit is an implementation of the OASIS DITA specification" homepage "https://www.dita-ot.org/" url "https://github.com/dita-ot/dita-ot/releases/download/3.2.1/dita-ot-3.2.1.zip" sha256 "18560f4abac84f516e28ada675476eee1a088dd1f9a2eb887e51ea89c3ed3f49" bottle :unneeded depends_on :java => "1.8+" def install rm_f Dir["bin/*.bat", "config/env.bat", "startcmd.*"] libexec.install Dir["*"] bin.install_symlink libexec/"bin/dita" end test do system bin/"dita", "--input=#{libexec}/docsrc/site.ditamap", "--format=html5", "--output=#{testpath}/out" assert_predicate testpath/"out/index.html", :exist? end end