homebrew-core/Formula/docfx.rb
Igor Kapkov c283915a16
docfx 2.40.4
Closes #34545.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-11-29 02:07:05 +08: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.40.4/docfx.zip"
sha256 "2824a16d35ef0e3068dd6ef620acb346b0571a455e4f328a685c01198541288e"
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