homebrew-core/Formula/docfx.rb

26 lines
664 B
Ruby
Raw Normal View History

2017-09-04 16:13:22 +00:00
class Docfx < Formula
desc "Tools for building and publishing API documentation for .NET projects"
homepage "https://dotnet.github.io/docfx/"
2017-09-21 04:46:41 +00:00
url "https://github.com/dotnet/docfx/releases/download/v2.24/docfx.zip"
sha256 "6f22bd5fa15f0ad1a6125f08b47bf55e0cca1c3022159e5d83077b659f0ec74f"
2017-09-04 16:13:22 +00:00
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