homebrew-core/Formula/docfx.rb
Igor Kapkov 92413eb109 docfx 2.42.4
Closes #40310.

Signed-off-by: Jan Viljanen <527069+javian@users.noreply.github.com>
2019-05-25 11:15:15 +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.42.4/docfx.zip"
sha256 "107a38b6017bccd6c6e9896a44b55400f21b3c25598a447beaac145bdf00f020"
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