homebrew-core/Formula/docfx.rb
Igor Kapkov fb624828e6 docfx 2.41
Closes #38675.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-04-05 12:28:52 +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.41/docfx.zip"
sha256 "e6c5351be6b6daebc672b84b529ed82006582cb9134a4b5a9b5c135fc5a62aeb"
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