homebrew-cask/Casks/macports.rb

41 lines
2.2 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'macports' do
2017-01-05 07:21:29 +08:00
version '2.3.5'
2016-08-08 03:12:48 +08:00
if MacOS.version <= :mountain_lion
2017-01-05 07:21:29 +08:00
sha256 'e77959840187054d31cbeb64bf33f311cf260973be7daf2a8c41e5753ecd8360'
# github.com/macports/macports-base was verified as official when first introduced to the cask
url "https://github.com/macports/macports-base/releases/download/v#{version}/MacPorts-#{version}-10.8-MountainLion.pkg"
pkg "MacPorts-#{version}-10.8-MountainLion.pkg"
2016-08-08 03:12:48 +08:00
elsif MacOS.version <= :mavericks
2017-01-05 07:21:29 +08:00
sha256 'c0cd44d7f4820742a14dd35b9e5942da438adf0500044ba46c825f5ba44d6a47'
# github.com/macports/macports-base was verified as official when first introduced to the cask
url "https://github.com/macports/macports-base/releases/download/v#{version}/MacPorts-#{version}-10.9-Mavericks.pkg"
pkg "MacPorts-#{version}-10.9-Mavericks.pkg"
2016-08-08 03:12:48 +08:00
elsif MacOS.version <= :yosemite
2017-01-05 07:21:29 +08:00
sha256 '12db5640b550f5c038edc2967d417334cdc0a8d8e619e145e1ed7352d274c07c'
# github.com/macports/macports-base was verified as official when first introduced to the cask
url "https://github.com/macports/macports-base/releases/download/v#{version}/MacPorts-#{version}-10.10-Yosemite.pkg"
pkg "MacPorts-#{version}-10.10-Yosemite.pkg"
elsif MacOS.version <= :el_capitan
2017-01-05 07:21:29 +08:00
sha256 'a465c9364ecc24139c2a15a8613e2dbc8911f9eae96e3b5a7db4a8117f29db88'
# github.com/macports/macports-base was verified as official when first introduced to the cask
url "https://github.com/macports/macports-base/releases/download/v#{version}/MacPorts-#{version}-10.11-ElCapitan.pkg"
pkg "MacPorts-#{version}-10.11-ElCapitan.pkg"
else
2017-01-05 07:21:29 +08:00
sha256 'a465c9364ecc24139c2a15a8613e2dbc8911f9eae96e3b5a7db4a8117f29db88'
# github.com/macports/macports-base was verified as official when first introduced to the cask
url "https://github.com/macports/macports-base/releases/download/v#{version}/MacPorts-#{version}-10.12-Sierra.pkg"
pkg "MacPorts-#{version}-10.12-Sierra.pkg"
2013-11-23 21:28:30 +08:00
end
2017-01-05 07:21:29 +08:00
appcast 'https://github.com/macports/macports-base/releases.atom',
checkpoint: 'bb4a24db76cee5daec24c402a3c521881f5724b2725e20b6fd5610a53144853e'
2015-01-23 05:52:13 +08:00
name 'MacPorts'
homepage 'https://www.macports.org/'
gpg "#{url}.asc", key_id: '01ff673fb4aae6cd'
uninstall pkgutil: 'org.macports.MacPorts'
zap delete: '~/.macports'
2013-11-23 21:28:30 +08:00
end