Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mono-mdk.rb
bloba62c24a0ed84898eb5ccd4820953a2ddbd17c30c
1 cask "mono-mdk" 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   livecheck do
11     url "https://www.mono-project.com/download/stable/"
12     regex(%r{href=.*?/MonoFramework-MDK-(\d+(?:\.\d+)+).macos10.xamarin.universal\.pkg}i)
13   end
15   conflicts_with cask:    "mono-mdk-for-visual-studio",
16                  formula: "mono"
18   pkg "MonoFramework-MDK-#{version}.macos10.xamarin.universal.pkg"
20   uninstall pkgutil: "com.xamarin.mono-*",
21             delete:  [
22               "/Library/Frameworks/Mono.framework/Versions/#{version.major_minor_patch}",
23               "/private/etc/paths.d/mono-commands",
24             ],
25             rmdir:   [
26               "/Library/Frameworks/Mono.framework",
27               "/Library/Frameworks/Mono.framework/Versions",
28             ]
30   zap trash: [
31     "~/.mono",
32     "~/Library/Preferences/mono-sgen64.plist",
33   ]
35   caveats <<~EOS
36     Installing #{token} removes mono and mono dependant formula binaries in
37     /usr/local/bin and adds #{token} to /private/etc/paths.d/
38     You may want to:
40       brew unlink {formula} && brew link {formula}
42     and/or remove /private/etc/paths.d/mono-commands
43   EOS
44 end