homebrew-core/Formula/docfx.rb
2018-07-31 07:38:08 +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.37.2/docfx.zip"
sha256 "7b2a638f4dd35d1e872fe5ed0aa881fedbd1648eea0d56ecdd198d8e11c497d6"
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