48 lines
1.4 KiB
Ruby
48 lines
1.4 KiB
Ruby
cask "anaconda" do
|
|
arch arm: "arm64", intel: "x86_64"
|
|
|
|
version "2024.02-1"
|
|
sha256 arm: "14a1c80af18c2c2e743e63cdb41228cd554a3fdb250563b6978348c80b6860f6",
|
|
intel: "944aee9b90f7d8a2a997d0337cb37219757f22e76c10de38c7c68191c6b5b226"
|
|
|
|
url "https://repo.anaconda.com/archive/Anaconda3-#{version}-MacOSX-#{arch}.sh"
|
|
name "Anaconda Distribution"
|
|
desc "Distribution of the Python and R programming languages for scientific computing"
|
|
homepage "https://www.anaconda.com/"
|
|
|
|
livecheck do
|
|
url "https://repo.anaconda.com/archive/"
|
|
regex(/Anaconda3-(\d+(?:\.\d+)+[._-]*\d+)-MacOSX-#{arch}\.sh/i)
|
|
end
|
|
|
|
auto_updates true
|
|
container type: :naked
|
|
|
|
installer script: {
|
|
executable: "Anaconda3-#{version}-MacOSX-#{arch}.sh",
|
|
args: ["-b", "-p", "#{HOMEBREW_PREFIX}/anaconda3"],
|
|
sudo: true,
|
|
}
|
|
|
|
postflight do
|
|
set_ownership "#{HOMEBREW_PREFIX}/anaconda3"
|
|
end
|
|
|
|
uninstall delete: [
|
|
"#{HOMEBREW_PREFIX}/anaconda3",
|
|
"/Applications/Anaconda-Navigator.app",
|
|
]
|
|
|
|
zap trash: [
|
|
"~/.anaconda",
|
|
"~/.conda",
|
|
"~/.condarc",
|
|
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.continuum.io.sfl*",
|
|
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.continuum.python.sfl*",
|
|
]
|
|
|
|
caveats do
|
|
files_in_usr_local
|
|
end
|
|
end
|