forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanaconda.rb
38 lines (31 loc) · 1.23 KB
/
anaconda.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cask 'anaconda' do
version '2019.07'
sha256 'dcbddbab37c5b5f3873fe24d2617a4325bc7da28c0cd1d23a2edc7f0ebe08b7d'
url "https://repo.anaconda.com/archive/Anaconda3-#{version}-MacOSX-x86_64.sh"
name 'Continuum Analytics Anaconda'
homepage 'https://www.anaconda.com/'
auto_updates true
container type: :naked
installer script: {
executable: "Anaconda3-#{version}-MacOSX-x86_64.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: [
'~/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*',
'~/.anaconda',
'~/.conda',
'~/.condarc',
]
caveats do
files_in_usr_local
end
end