homebrew-cask/Casks/macvim.rb

37 lines
933 B
Ruby

cask "macvim" do
version "8.2.1456,165"
sha256 "42205ff4bcd46e22b1be30e2116c0f68965b181c1e250d0c4717b4167d48b475"
url "https://github.com/macvim-dev/macvim/releases/download/snapshot-#{version.after_comma}/MacVim.dmg"
appcast "https://github.com/macvim-dev/macvim/releases.atom"
name "MacVim"
homepage "https://github.com/macvim-dev/macvim"
auto_updates true
conflicts_with formula: "macvim"
app "MacVim.app"
%w[
gview
gvim
gvimdiff
mview
mvim
mvimdiff
view
vim
vimdiff
].each { |link_name| binary "#{appdir}/MacVim.app/Contents/bin/mvim", target: link_name }
zap trash: [
"~/Library/Caches/org.vim.MacVim",
"~/Library/Preferences/org.vim.MacVim.LSSharedFileList.plist",
"~/Library/Preferences/org.vim.MacVim.plist",
]
caveats <<~EOS
To avoid overwriting vim binaries from other formulae or casks, install with the "--no-binaries" flag.
EOS
end