Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mono-mdk-for-visual-studio.rb
blobeeb99cc1f900ddfd616571a2f742638f4dd1e441
1 cask "mono-mdk-for-visual-studio" do
2   version "6.12.0.206"
3   sha256 "80b0dbfa59ba9ed76dbf1393998e6a2ed2d1ccc8f5850c7a46fbe31a2aea88d8"
5   url "https://download.mono-project.com/archive/#{version.major_minor_patch}/macos-10-universal/MonoFramework-MDK-#{version}.macos10.xamarin.universal.pkg"
6   name "Mono"
7   desc "Open source implementation of Microsoft's .NET Framework"
8   homepage "https://www.mono-project.com/"
10   # https://learn.microsoft.com/en-us/visualstudio/releases/2022/what-happened-to-vs-for-mac
11   deprecate! date: "2024-09-01", because: :discontinued
13   conflicts_with cask:    "mono-mdk",
14                  formula: "mono"
16   pkg "MonoFramework-MDK-#{version}.macos10.xamarin.universal.pkg"
18   uninstall pkgutil: "com.xamarin.mono-*",
19             delete:  [
20               "/Library/Frameworks/Mono.framework/Versions/#{version.major_minor_patch}",
21               "/private/etc/paths.d/mono-commands",
22             ],
23             rmdir:   [
24               "/Library/Frameworks/Mono.framework",
25               "/Library/Frameworks/Mono.framework/Versions",
26             ]
28   zap delete: "~/Library/Preferences/mono-sgen64.plist",
29       trash:  [
30         "~/.mono",
31         "~/Library/Caches/com.xamarin.fontconfig",
32       ]
34   caveats <<~EOS
35     This is a version specific for Visual Studio users. This cask should follow the specific Visual Studio channel/branch maintained by mono developers.
37     Installing #{token} removes mono and mono dependant formula binaries in
38     /usr/local/bin and adds #{token} to /private/etc/paths.d/
39     You may want to:
41       brew unlink {formula} && brew link {formula}
43     and/or remove /private/etc/paths.d/mono-commands
44   EOS
45 end