homebrew-core/Formula/docfx.rb
2017-10-13 23:55:32 -07:00

25 lines
666 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.25.2/docfx.zip"
sha256 "d9d311e7f7841fc4f7e08a79bbfcc40c8474f7a0bbda110cb42fc9ca29513592"
bottle :unneeded
depends_on "mono"
def install
libexec.install Dir["*"]
(bin/"docfx").write <<-EOS.undent
#!/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