homebrew-core/Formula/nuget.rb
Caleb Xu 7f1a98734e nuget 5.3.1
Closes #46352.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-11-06 09:04:38 +09:00

22 lines
658 B
Ruby

class Nuget < Formula
desc "Package manager for Microsoft development platform including .NET"
homepage "https://www.nuget.org/"
url "https://dist.nuget.org/win-x86-commandline/v5.3.1/nuget.exe" # make sure libexec.install below matches case
sha256 "e3e46eb415561c778a7fdec7194bca9811c6e7f4066cc8cc85244c391b969c11"
bottle :unneeded
depends_on "mono"
def install
libexec.install "nuget.exe" => "nuget.exe"
(bin/"nuget").write <<~EOS
#!/bin/bash
mono #{libexec}/nuget.exe "$@"
EOS
end
test do
assert_match "NuGet.Protocol.Core.v3", shell_output("#{bin}/nuget list packageid:NuGet.Protocol.Core.v3")
end
end