homebrew-core/Formula/docfx.rb
Caleb Xu 13081f40b0 docfx 2.48
Closes #47934.

Signed-off-by: Alexander Bayandin <a.bayandin@gmail.com>
2019-12-16 23:58:08 +00:00

25 lines
657 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.48/docfx.zip"
sha256 "07d6e9cd6374fa635a4577058ac85492d2072447ec7e5887771c6c1648648fab"
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