2015-12-05 06:39:58 +08:00
|
|
|
cask :v1_1 => 'anaconda' do
|
2015-11-16 01:04:24 +08:00
|
|
|
version '2.4.0'
|
2015-12-05 06:39:58 +08:00
|
|
|
sha256 '6d41e4cace78d9ed3cc4151898236ee8688cf8135cffd21de4727199c96c4737'
|
2015-11-16 01:04:24 +08:00
|
|
|
|
2015-12-05 07:21:53 +08:00
|
|
|
url "https://repo.continuum.io/archive/Anaconda3-#{version}-MacOSX-x86_64.sh"
|
2015-12-05 06:39:58 +08:00
|
|
|
name 'Anaconda'
|
2015-11-16 01:04:24 +08:00
|
|
|
homepage 'https://www.continuum.io/why-anaconda'
|
|
|
|
license :gratis
|
|
|
|
tags :vendor => 'Continuum Analytics'
|
|
|
|
|
|
|
|
container :type => :naked
|
|
|
|
|
|
|
|
preflight do
|
2015-12-05 06:39:58 +08:00
|
|
|
set_permissions "#{staged_path}/Anaconda3-#{version}-MacOSX-x86_64.sh", '+x'
|
2015-11-16 01:04:24 +08:00
|
|
|
end
|
|
|
|
|
2015-12-05 06:39:58 +08:00
|
|
|
installer :script => "Anaconda3-#{version}-MacOSX-x86_64.sh",
|
2015-11-16 01:04:24 +08:00
|
|
|
:args => [ '-b' ],
|
|
|
|
:sudo => false
|
|
|
|
|
2015-12-05 07:21:53 +08:00
|
|
|
uninstall :delete => '~/anaconda3'
|
2015-11-16 01:04:24 +08:00
|
|
|
|
|
|
|
caveats do
|
2015-12-05 06:39:58 +08:00
|
|
|
path_environment_variable '~/anaconda3/bin'
|
2015-11-16 01:04:24 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on :macos => '>= :lion'
|
|
|
|
end
|