2014-11-14 01:26:19 +08:00
|
|
|
cask :v1 => 'macvim' do
|
2014-10-04 22:10:08 +08:00
|
|
|
|
2014-12-11 00:55:20 +08:00
|
|
|
if MacOS.release <= :mountain_lion
|
2015-03-13 23:00:34 +08:00
|
|
|
version '7.4-73'
|
2014-05-05 23:14:10 +08:00
|
|
|
sha256 '7f573fb9693052a86845c0a9cbb0b3c3c33ee23294f9d8111187377e4d89f72c'
|
2015-01-18 09:04:12 +08:00
|
|
|
# github.com is the official download host per the vendor homepage
|
2015-03-13 23:00:34 +08:00
|
|
|
url "https://github.com/macvim-dev/macvim/releases/download/snapshot-#{version.sub(%r{^.*-},'')}/MacVim-snapshot-#{version.sub(%r{^.*-},'')}-Mountain-Lion.tbz"
|
|
|
|
elsif MacOS.release == :mavericks
|
|
|
|
version '7.4-73'
|
2014-10-04 22:10:08 +08:00
|
|
|
sha256 '557c60f3487ab68426cf982c86270f2adfd15e8a4d535f762e6d55602754d224'
|
2015-01-18 09:04:12 +08:00
|
|
|
# github.com is the official download host per the vendor homepage
|
2014-10-28 22:18:18 +08:00
|
|
|
url "https://github.com/b4winckler/macvim/releases/download/snapshot-#{version.sub(%r{^.*-},'')}/MacVim-snapshot-#{version.sub(%r{^.*-},'')}-Mavericks.tbz"
|
2015-03-13 23:00:34 +08:00
|
|
|
else
|
2015-04-27 22:38:37 +08:00
|
|
|
version '7.4-75'
|
|
|
|
sha256 'e1093097fcd9f2338132aabc42d8dbbdd4049512b91c34e31bc5dca713f4aa32'
|
2015-03-13 23:00:34 +08:00
|
|
|
# github.com is the official download host per the vendor homepage
|
|
|
|
url "https://github.com/macvim-dev/macvim/releases/download/snapshot-#{version.sub(%r{^.*-},'')}/MacVim-snapshot-#{version.sub(%r{^.*-},'')}-Yosemite.tbz"
|
2015-03-15 19:52:50 +08:00
|
|
|
appcast 'https://github.com/macvim-dev/macvim/releases.atom'
|
2013-11-09 06:39:26 +08:00
|
|
|
end
|
2014-10-04 22:10:08 +08:00
|
|
|
|
2015-04-13 01:05:51 +08:00
|
|
|
name 'MacVim'
|
2015-06-03 08:46:42 +08:00
|
|
|
homepage 'https://github.com/macvim-dev/macvim'
|
2014-10-01 23:33:19 +08:00
|
|
|
license :oss
|
2014-10-04 22:10:08 +08:00
|
|
|
|
2014-10-28 22:18:18 +08:00
|
|
|
app "MacVim-snapshot-#{version.sub(%r{^.*-},'')}/MacVim.app"
|
|
|
|
binary "MacVim-snapshot-#{version.sub(%r{^.*-},'')}/mvim"
|
|
|
|
|
2014-10-10 20:13:30 +08:00
|
|
|
zap :delete => [
|
|
|
|
'~/Library/Preferences/org.vim.MacVim.LSSharedFileList.plist',
|
|
|
|
'~/Library/Preferences/org.vim.MacVim.plist',
|
|
|
|
]
|
|
|
|
|
2014-02-21 23:44:44 +08:00
|
|
|
caveats do
|
|
|
|
files_in_usr_local
|
2014-10-04 22:10:08 +08:00
|
|
|
<<-EOS.undent
|
|
|
|
Note that homebrew also provides a compiled macvim Formula that links its
|
|
|
|
binary to /usr/local/bin/mvim. It's not recommended to install both the
|
|
|
|
Cask and the Formula of MacVim.
|
|
|
|
EOS
|
2014-02-21 23:44:44 +08:00
|
|
|
end
|
2012-09-22 12:05:10 +08:00
|
|
|
end
|