homebrew-core/Formula/docfx.rb
Caleb Xu 8b354919fe docfx 2.45
Closes .

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-08-30 17:42:02 +02: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.45/docfx.zip"
sha256 "2cce901a539c5ad620df6ab7ca3a1121817a8d14e4a9fa7cdeff53feedf0000d"
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