homebrew-core/Formula/docfx.rb
Dominyk Tiller ea75fa1641
docfx 2.38
Closes #31069.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2018-08-13 21:08:29 +01: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.38/docfx.zip"
sha256 "102456fd249ef61c9823f48d5755bf5ec7ddcf47f9c5966a3aee94525ca8268f"
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