homebrew-core/Formula/docfx.rb
Igor Kapkov ef3749ec80
docfx 2.40.2
Closes #34130.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-11-16 16:06:45 +08:00

25 lines
659 B
Ruby

class Docfx < Formula
desc "Tools for building and publishing API documentation for .NET projects"
homepage "https://dotnet.github.io/docfx/"
url "https://github.com/dotnet/docfx/releases/download/v2.40.2/docfx.zip"
sha256 "fa79a85ce1b19325c0ceb1585bcce680bbbb46f79a5331cf04678509c9311f04"
bottle :unneeded
depends_on "mono"
def install
libexec.install Dir["*"]
(bin/"docfx").write <<~EOS
#!/bin/bash
mono #{libexec}/docfx.exe "$@"
EOS
end
test do
system bin/"docfx", "init", "-q"
assert_predicate testpath/"docfx_project/docfx.json", :exist?,
"Failed to generate project"
end
end