homebrew-core/Formula/docfx.rb
Igor Kapkov 94c06e877d docfx 2.43.1
Closes #41091.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-06-19 08:23:49 +02: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.43.1/docfx.zip"
sha256 "f5e823d59864ade763a61f5594b00f86366c8eb4cf373c37207a5c4a4838fb4f"
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