homebrew-core/Formula/naturaldocs.rb
pogo187 431a2e3d5b
naturaldocs 2.0.2
NaturalDocs 2.0.2 uses a .exe file, so adding mono as a dependency and updating the formula to account for windows EXE.

Closes #31098.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2018-08-20 03:08:21 +01:00

24 lines
630 B
Ruby

class Naturaldocs < Formula
desc "Extensible, multi-language documentation generator"
homepage "https://www.naturaldocs.org/"
url "https://downloads.sourceforge.net/project/naturaldocs/Stable%20Releases/2.0.2/Natural_Docs_2.0.2.zip"
sha256 "4a8be89d1c749fa40611193404556d408f414e03df8c397b970e045b57a54d4d"
bottle :unneeded
depends_on "mono"
def install
libexec.install Dir["*"]
(bin/"naturaldocs").write <<~EOS
#!/bin/bash
mono #{libexec}/NaturalDocs.exe "$@"
EOS
libexec.install_symlink etc/"naturaldocs" => "config"
end
test do
system "#{bin}/naturaldocs", "-h"
end
end