2015-12-18 09:15:28 +08:00
|
|
|
cask 'anaconda' do
|
2017-10-31 10:58:11 +08:00
|
|
|
version '5.0.1'
|
|
|
|
sha256 'f438a0af923bc1edc7bca53f496c59a668d1a08b48c768f443ad7f5ea2b8b3f8'
|
2015-11-16 01:04:24 +08:00
|
|
|
|
2017-09-17 17:36:26 +08:00
|
|
|
# repo.continuum.io/archive was verified as official when first introduced to the cask
|
2015-12-05 07:21:53 +08:00
|
|
|
url "https://repo.continuum.io/archive/Anaconda3-#{version}-MacOSX-x86_64.sh"
|
2015-12-25 03:04:00 +08:00
|
|
|
name 'Continuum Analytics Anaconda'
|
2017-09-17 17:36:26 +08:00
|
|
|
homepage 'https://www.anaconda.com/what-is-anaconda/'
|
2015-11-16 01:04:24 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
depends_on macos: '>= :lion'
|
|
|
|
container type: :naked
|
2015-11-16 01:04:24 +08:00
|
|
|
|
2017-04-11 01:35:40 +08:00
|
|
|
installer script: {
|
|
|
|
executable: "Anaconda3-#{version}-MacOSX-x86_64.sh",
|
2017-04-22 07:27:31 +08:00
|
|
|
args: ['-b', '-p', "#{HOMEBREW_PREFIX}/anaconda3"],
|
|
|
|
sudo: true,
|
2017-04-11 01:35:40 +08:00
|
|
|
}
|
2015-11-16 01:04:24 +08:00
|
|
|
|
2017-05-12 15:01:05 +08:00
|
|
|
postflight do
|
|
|
|
set_ownership "#{HOMEBREW_PREFIX}/anaconda3"
|
|
|
|
end
|
|
|
|
|
2017-06-06 09:46:49 +08:00
|
|
|
uninstall delete: [
|
|
|
|
"#{HOMEBREW_PREFIX}/anaconda3",
|
|
|
|
'/Applications/Anaconda-Navigator.app',
|
|
|
|
]
|
2016-01-04 17:06:21 +08:00
|
|
|
|
2017-11-18 17:35:03 +08:00
|
|
|
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*',
|
|
|
|
]
|
2016-11-07 18:56:14 +08:00
|
|
|
|
2015-11-16 01:04:24 +08:00
|
|
|
caveats do
|
2017-04-22 07:27:31 +08:00
|
|
|
path_environment_variable "#{HOMEBREW_PREFIX}/anaconda3/bin"
|
|
|
|
files_in_usr_local
|
2015-11-16 01:04:24 +08:00
|
|
|
end
|
|
|
|
end
|