homebrew-core/Formula/docfx.rb
Igor Kapkov d6325fa591 docfx 2.45.1
Closes #44209.

Signed-off-by: Caleb Xu <calebcenter@live.com>
2019-09-13 01:41:02 -04: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.45.1/docfx.zip"
sha256 "4aff305a573bf73f64df82516e94a1bd4e5ed7b42197b8b3c74bf077e383cb48"
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