2015-12-18 09:15:28 +08:00
|
|
|
cask 'gambit-c' do
|
2014-10-05 07:40:15 +08:00
|
|
|
version '4.7.3'
|
2014-09-26 20:08:55 +08:00
|
|
|
|
2014-08-09 22:06:35 +08:00
|
|
|
if Hardware::CPU.is_32_bit?
|
2014-10-05 07:40:15 +08:00
|
|
|
sha256 '002ea1d272a4328a0448eab69e6256e104d888bc3c98133d072092457f842bbf'
|
2016-02-14 08:58:20 +08:00
|
|
|
# iro.umontreal.ca/~gambit was verified as official when first introduced to the cask
|
2016-07-15 20:35:22 +08:00
|
|
|
url "https://www.iro.umontreal.ca/~gambit/download/gambit/v4.7/prebuilt/gambc-v#{version.dots_to_underscores}-macosx-intel32.dmg"
|
|
|
|
pkg "gambc-v#{version.dots_to_underscores}-macosx-intel32.pkg"
|
2014-08-09 22:06:35 +08:00
|
|
|
else
|
2014-10-05 07:40:15 +08:00
|
|
|
sha256 'bfdad5d4c5025b3ab21926554d870cb37a68607534b78912f81c62db29054a02'
|
2016-02-14 08:58:20 +08:00
|
|
|
# iro.umontreal.ca/~gambit was verified as official when first introduced to the cask
|
2016-07-15 20:35:22 +08:00
|
|
|
url "https://www.iro.umontreal.ca/~gambit/download/gambit/v4.7/prebuilt/gambc-v#{version.dots_to_underscores}-macosx-intel64.dmg"
|
|
|
|
pkg "gambc-v#{version.dots_to_underscores}-macosx-intel64.pkg"
|
2014-03-09 01:01:10 +08:00
|
|
|
end
|
2014-09-26 20:08:55 +08:00
|
|
|
|
2015-04-06 16:52:05 +08:00
|
|
|
name 'Gambit-C'
|
2014-10-05 07:40:15 +08:00
|
|
|
homepage 'http://gambitscheme.org/'
|
2014-10-12 00:34:56 +08:00
|
|
|
license :apache
|
2014-09-26 20:08:55 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
uninstall pkgutil: 'marc.feeley.gambc',
|
|
|
|
script: {
|
|
|
|
executable: "/Library/Gambit-C/v#{version}/bin/uninstall-gambc",
|
|
|
|
args: ["v#{version}"],
|
|
|
|
}
|
2016-01-04 03:18:23 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
zap delete: '~/.gambc_history'
|
2014-03-09 01:01:10 +08:00
|
|
|
end
|