1c3f2dc28a
Closes #44067. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
22 lines
701 B
Ruby
22 lines
701 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.3.4/dita-ot-3.3.4.zip"
|
|
sha256 "738d4e1b94514b405888e60298a528c7d44c69c73d705c3665c889ef7a4128a9"
|
|
|
|
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
|