homebrew-cask-versions/Casks/python3.rb
Jan Sauer f14d34f9d3 Fix homepage to use SSL in Python3 Cask
The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly
makes it more secure and saves a HTTP round-trip.
2015-06-05 13:46:54 +02:00

27 lines
1.3 KiB
Ruby

cask :v1 => 'python3' do
# note: "3" is a trailing version number on the Cask token, which
# breaks our own token conventions, for consistency with Homebrew
version '3.4.3'
sha256 'ab76fa2ad87d9b36105ccc94b98e40aa158393975a0d45cf0ca491aad6bbcf22'
url "https://www.python.org/ftp/python/#{version}/python-#{version}-macosx10.6.pkg"
name 'Python'
homepage 'https://www.python.org/'
license :oss
pkg "python-#{version}-macosx10.6.pkg"
uninstall :pkgutil => [
"org.python.Python.PythonApplications-#{version.slice(/\d+\.\d+/)}",
"org.python.Python.PythonDocumentation-#{version.slice(/\d+\.\d+/)}",
"org.python.Python.PythonFramework-#{version.slice(/\d+\.\d+/)}",
"org.python.Python.PythonUnixTools-#{version.slice(/\d+\.\d+/)}",
],
:delete => [
"/Library/Receipts/PythonInstallPip-#{version.slice(/\d+\.\d+/)}",
"/Applications/Python #{version.slice(/\d+\.\d+/)}",
"/Library/Frameworks/Python.Framework/Versions/#{version.slice(/\d+\.\d+/)}",
"/Library/Python/#{version.slice(/\d+\.\d+/)}",
]
zap :delete => "~/Library/Python/#{version.slice(/\d+\.\d+/)}"
end