homebrew-core/Formula/docfx.rb
Igor Kapkov 8bd24e7a8c docfx 2.43.3
Closes #41980.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-07-15 11:30:19 +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.3/docfx.zip"
sha256 "ac8891805c6c0ee4da6d38d0137ad831e34d097df64b42cc919b39add7866015"
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