homebrew-core/Formula/dita-ot.rb
2018-06-14 04:46:56 -07:00

23 lines
696 B
Ruby

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.1/dita-ot-3.1.zip"
sha256 "256163beed7958218653052f9cb8dee43a393f83f6d6c36e5f9d1cc3f29da93b"
bottle :unneeded
depends_on :java => "1.8+"
def install
rm_f Dir["bin/*.bat", "startcmd.*"]
rm_rf "temp"
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