From 4e218a63ae834ee4b9fdec95c093e346a9bb282f Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 14 Sep 2015 11:57:41 +0800 Subject: [PATCH] Add Python 3.4 Cask --- Casks/python34.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Casks/python34.rb diff --git a/Casks/python34.rb b/Casks/python34.rb new file mode 100644 index 000000000..161412056 --- /dev/null +++ b/Casks/python34.rb @@ -0,0 +1,25 @@ +cask :v1 => 'python34' do + 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