homebrew-cask-versions/Casks/macvim.rb
Roland Walker 329c48298a caveats first-class in DSL, gets own mini-DSL
Make caveats a first-class member of the Cask DSL.  It no longer has to
be specified with "def caveats", but can be given as "caveats do ... end"
as with after_install blocks.

In addition, create a mini-DSL which can be used within caveats blocks,
providing standard messages when manual installers must be used,
reboot-required, etc.

Add alternate form: caveats can also accept a compile-time string for
simple cases.

This is 99% compatible with old Casks, as it still works by defining
a caveats method.  However, all Casks containing caveats are cleaned
up and adapted according to the new DSL.

Full docs in CONTRIBUTING.md.
2014-01-20 11:54:46 -05:00

18 lines
754 B
Ruby

class Macvim < Cask
if MacOS.version == :mavericks
url 'https://github.com/b4winckler/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mavericks.tbz'
sha1 'dc983ae1e3ffae1c80f06eea9eacee49019a0c8a'
else
url 'https://github.com/eee19/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mountain-Lion.tbz'
sha1 'bc3b899634d73908ddba5afd9b9a74778988aec3'
end
homepage 'http://code.google.com/p/macvim/'
version '7.4-72'
link 'MacVim-snapshot-72/MacVim.app'
binary 'MacVim-snapshot-72/mvim'
caveats <<-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
end