homebrew-core/Formula/docfx.rb
Igor Kapkov 1efda66641
docfx 2.40.12
Closes #37830.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-03-13 11:20:26 +08:00

25 lines
660 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.12/docfx.zip"
sha256 "7364323e072a8a70e3349122a8bc18a8e48456367d054cd9e392957a935d3354"
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