forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacports.rb
26 lines (23 loc) · 1.08 KB
/
macports.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cask :v1 => 'macports' do
version '2.3.2'
if MacOS.release <= :mountain_lion
sha256 'd4648634b571ada1f81cdc5583a48d0ceed1ef55ce5a2de0bdaaaf4b570b77f0'
url "https://distfiles.macports.org/MacPorts/MacPorts-#{version}-10.8-MountainLion.pkg"
pkg "MacPorts-#{version}-10.8-MountainLion.pkg"
elsif MacOS.release <= :mavericks
sha256 'e47cab9b36543a4f9a1f8ea99ef34558bed08b8f8f5dc619b278a061c9daf3af'
url "https://distfiles.macports.org/MacPorts/MacPorts-#{version}-10.9-Mavericks.pkg"
pkg "MacPorts-#{version}-10.9-Mavericks.pkg"
else
sha256 '70a5b06600136f69a24c86ffaf7c4a86303e42ec4e447182cdda1cf2cf6f8a87'
url "https://distfiles.macports.org/MacPorts/MacPorts-#{version}-10.10-Yosemite.pkg"
pkg "MacPorts-#{version}-10.10-Yosemite.pkg"
end
gpg "#{url}.asc",
:key_id => '01ff673fb4aae6cd'
name 'MacPorts'
homepage 'http://www.macports.org'
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
uninstall :pkgutil => 'org.macports.MacPorts'
zap :delete => '~/.macports'
end