Skip to content

Commit

Permalink
sage.rb: Switch mirror; update to v7.2; fix URLs (Homebrew#21353)
Browse files Browse the repository at this point in the history
The latest stable version of SageMath is [7.2](http://mirrors.mit.edu/sage/osx/intel/index.html) and can be found on the MIT mirror.

Currently, the El Capitan branch of this cask is broken because it points to [go-parts.com](http://mirrors-usa.go-parts.com/sage/sagemath/osx/intel/), a mirror which seems not to carry neither the stable 7.1 version nor the current stable v7.2.

The site is also not part of the [list of download servers on sagemath.org](http://www.sagemath.org/download-mac.html). Because of this, I switched the El Capitan branch to point to mirrors.mit.edu/sage just like the other branches do.

This commit also updates broken URLs for the Mavericks and Yosemite branches.

http://mirrors.mit.edu/sage/osx/intel/sage-7.2-OSX_10.11.4-x86_64.tar.bz2

This cask also happens to symlink a binary which lives inside the moved artifact. So this is one of the cases where we might want to use the new `appdir` method that is being introduced in Homebrew#13966.
  • Loading branch information
claui authored and chizmw committed Jun 15, 2016
1 parent 5ae604b commit 6199aea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Casks/sage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
version '6.9'
sha256 '21f460c90db2a9ee83d196937587de5daab8c6712b0f24366b6a1c15a8dd592b'
# mit.edu/sage was verified as official when first introduced to the cask
url "http://mirrors.mit.edu/sage/osx/intel/sage-#{version}-x86_64-Darwin-OSX-10.7-app.dmg"
url "http://mirrors.mit.edu/sage/osx/intel/old/sage-#{version}-x86_64-Darwin-OSX-10.7-app.dmg"
elsif MacOS.release <= :yosemite
version '6.9'
sha256 '03112bf747cf807f308d518f34c1982ca3c9599e65bf64a6782efc78136198a4'
# mit.edu/sage was verified as official when first introduced to the cask
url "http://mirrors.mit.edu/sage/osx/intel/sage-#{version}-x86_64-Darwin-OSX_10.10_x86_64-app.dmg"
url "http://mirrors.mit.edu/sage/osx/intel/old/sage-#{version}-x86_64-Darwin-OSX_10.10_x86_64-app.dmg"
else
version '7.1'
sha256 'ce900a39dd1a4c33cec40a3c2fde81cf4a4446a7d8b3985041b501b9d88f8471'
# go-parts.com/sage was verified as official when first introduced to the cask
url "http://mirrors-usa.go-parts.com/sage/sagemath/osx/intel/sage-#{version}-OSX_10.11.3-x86_64.app.dmg"
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"
end

name 'Sage'
Expand Down

0 comments on commit 6199aea

Please sign in to comment.