homebrew-cask/Casks/macports.rb

41 lines
2.2 KiB
Ruby

cask 'macports' do
version '2.4.0'
if MacOS.version <= :mountain_lion
sha256 '09200c9bf2c0d62f792647acf422e95a5799d43580d49e3fbc26ce87befdc483'
# 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"
elsif MacOS.version <= :mavericks
sha256 'f1977ba2b3553f405468dcf25d1a526976013b883a6ef537dae25ec6d38e150a'
# 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"
elsif MacOS.version <= :yosemite
sha256 '19747e613a7f6d74f26dae88dee9c204512a3ada9eb0070ee087658f54e789d9'
# 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
sha256 'e4365a2c21f70c4f18496fdf5442e8f8e8d8adac0202981ba2c9d9f367f454b6'
# 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
sha256 '0ccf8a121df9277ad19ba215ca355f9f3bab3f1aca2d7fd542f1cfb67dd0e500'
# 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"
end
appcast 'https://github.com/macports/macports-base/releases.atom',
checkpoint: 'b236fb8b470de6132694c44efa7df0ddafff4b5ed671eea71779ef9f27d2fb5d'
name 'MacPorts'
homepage 'https://www.macports.org/'
gpg "#{url}.asc", key_id: '01ff673fb4aae6cd'
uninstall pkgutil: 'org.macports.MacPorts'
zap delete: '~/.macports'
end