mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-06-30 06:12:15 -06:00
* "Canonical App Name" becomes "Simplified App Name"
* devscript `cask_namer` renamed to `generate_cask_token`
* doc file `CASK_NAMING_REFERENCE.md` renamed to `cask_token_reference.md`
* DSL uses `"#{token}"` for interpolation instead of `"#{title}"`
* documentation text
* backend code (variables, method, class names)
* error message text
* tests
* code comments
* Cask comments
* emphasize `tags :name`
* doc: use "vendor" consistently instead of "developer"
* doc: many man page argument descriptions were incorrect
* incidental clarifications
Many backend variables similar to `cask_name` or `cask` have
been standardized to `cask_token`, `token`, etc, resolving a long-
standing ambiguity in which variables named `cask` might contain
a Cask instance or a string token.
In many places the docs could be shortened from "Cask name" to
simply "token", which is desirable because we use the term "Cask"
in too many contexts.
26 lines
1.3 KiB
Ruby
26 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.2'
|
|
sha256 '5a4edfac31efd4ecd2efb4cb7203c0c36e488f1d0a20755b674b04dcb3c21e1b'
|
|
|
|
url "https://www.python.org/ftp/python/#{version}/python-#{version}-macosx10.6.pkg"
|
|
homepage 'http://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
|