7f1a98734e
Closes #46352. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
22 lines
658 B
Ruby
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
|