homebrew-core/Formula/docfx.rb
2018-02-28 01:05:41 -08: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.32/docfx.zip"
sha256 "186afd10559aab7c3d5dd48c48c4eb8e4d4fec9cf3563bae10d2f867c2773616"
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