2015-12-18 09:15:28 +08:00
|
|
|
cask 'sage' do
|
2016-08-08 03:12:48 +08:00
|
|
|
if MacOS.version <= :mavericks
|
2016-01-08 08:28:19 +08:00
|
|
|
version '6.9'
|
|
|
|
sha256 '21f460c90db2a9ee83d196937587de5daab8c6712b0f24366b6a1c15a8dd592b'
|
2016-02-06 22:34:20 +08:00
|
|
|
# mit.edu/sage was verified as official when first introduced to the cask
|
2016-05-22 03:24:15 +08:00
|
|
|
url "http://mirrors.mit.edu/sage/osx/intel/old/sage-#{version}-x86_64-Darwin-OSX-10.7-app.dmg"
|
2016-08-08 03:12:48 +08:00
|
|
|
elsif MacOS.version <= :yosemite
|
2015-10-20 03:58:50 +08:00
|
|
|
version '6.9'
|
|
|
|
sha256 '03112bf747cf807f308d518f34c1982ca3c9599e65bf64a6782efc78136198a4'
|
2016-02-06 22:34:20 +08:00
|
|
|
# mit.edu/sage was verified as official when first introduced to the cask
|
2016-05-22 03:24:15 +08:00
|
|
|
url "http://mirrors.mit.edu/sage/osx/intel/old/sage-#{version}-x86_64-Darwin-OSX_10.10_x86_64-app.dmg"
|
2016-01-08 08:28:19 +08:00
|
|
|
else
|
2016-05-22 03:24:15 +08:00
|
|
|
version '7.2'
|
|
|
|
sha256 '4ede3cac113778e120d233baf702426ffad10905d43afe239c1ea8fd1068697e'
|
|
|
|
# mit.edu/sage was verified as official when first introduced to the cask
|
|
|
|
url "http://mirrors.mit.edu/sage/osx/intel/sage-#{version}-OSX_10.11.4-x86_64.app.dmg"
|
2015-08-08 23:48:33 +08:00
|
|
|
end
|
2014-06-27 08:01:40 +08:00
|
|
|
|
2015-01-12 01:50:20 +08:00
|
|
|
name 'Sage'
|
2016-08-05 09:22:09 +08:00
|
|
|
homepage 'https://www.sagemath.org/'
|
2014-12-11 15:19:15 +08:00
|
|
|
license :gpl
|
2014-06-27 08:01:40 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
depends_on macos: '>= :lion'
|
|
|
|
depends_on arch: :x86_64
|
2016-01-08 08:28:19 +08:00
|
|
|
|
2016-08-08 03:12:48 +08:00
|
|
|
if MacOS.version <= :yosemite
|
2016-01-08 08:28:19 +08:00
|
|
|
app "Sage-#{version}.app"
|
2016-06-01 03:23:21 +08:00
|
|
|
binary "#{appdir}/Sage-#{version}.app/Contents/Resources/sage/sage"
|
2016-01-08 08:28:19 +08:00
|
|
|
else
|
|
|
|
app "SageMath-#{version}.app"
|
2016-06-01 03:23:21 +08:00
|
|
|
binary "#{appdir}/SageMath-#{version}.app/Contents/Resources/sage/sage"
|
2016-01-08 08:28:19 +08:00
|
|
|
end
|
2014-10-11 22:32:19 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
zap delete: [
|
|
|
|
'~/.sage',
|
|
|
|
'~/Library/Logs/sage.log',
|
|
|
|
]
|
2014-10-11 22:32:19 +08:00
|
|
|
|
2014-01-26 10:26:47 +08:00
|
|
|
caveats do
|
|
|
|
files_in_usr_local
|
|
|
|
end
|
2014-01-25 15:50:39 +08:00
|
|
|
end
|