diff options
| author | Benjamin Kramer | 2009-12-26 15:11:03 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-01 21:05:58 -0700 |
| commit | e9d7a94433ac06b02c242e866c6ea1af0563e35c (patch) | |
| tree | 6f7850e0fb6a6efc8dc9e59580fe4199b5f140ef /Library/Formula/macvim.rb | |
| parent | f7606997cae7f787167541adf9f91f4cc244934c (diff) | |
| download | homebrew-e9d7a94433ac06b02c242e866c6ea1af0563e35c.tar.bz2 | |
Add MacVim formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/macvim.rb')
| -rw-r--r-- | Library/Formula/macvim.rb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb new file mode 100644 index 000000000..fb5ae64b0 --- /dev/null +++ b/Library/Formula/macvim.rb @@ -0,0 +1,38 @@ +require 'formula' + +class Macvim <Formula + head 'git://repo.or.cz/MacVim.git' + homepage 'http://code.google.com/p/macvim' + + def install + # MacVim's Xcode project gets confused by $CC, disable it until someone + # figures out why it fails. + ENV['CC'] = nil + ENV['CFLAGS'] = nil + ENV['CXX'] = nil + ENV['CXXFLAGS'] = nil + + system "./configure", + # Add some features + "--with-features=huge", + "--enable-perlinterp", + "--enable-pythoninterp", + "--enable-rubyinterp", + "--enable-tclinterp" + system "make" + + prefix.install "src/MacVim/build/Release/MacVim.app" + inreplace "src/MacVim/mvim", /^# VIM_APP_DIR=\/Applications$/, + "VIM_APP_DIR=#{prefix}" + bin.install "src/MacVim/mvim" + + # Create MacVim vimdiff, view, ex equivalents + %w[mvimdiff mview mvimex].each do |f| + (bin + f).make_symlink("#{bin}/mvim") + end + end + + def caveats + "MacVim.app installed to #{prefix}." + end +end |
