Files
tigerbrew/Library/Formula/macvim.rb
T
Edward George a7461fe256 Updated macvim repo to new official github repo.
It was announced with the 7.3 release that the repo.or.cz repo will be
deprecated in favour of the github one.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-15 14:02:18 -07:00

50 lines
1.3 KiB
Ruby

require 'formula'
class Macvim <Formula
head 'git://github.com/b4winckler/macvim.git'
homepage 'http://code.google.com/p/macvim'
def options
[["--no-icons", "Does not generate custom document icons."]]
end
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",
"--with-macsdk=#{MACOS_VERSION}",
# Add some features
"--with-features=huge",
"--enable-perlinterp",
"--enable-pythoninterp",
"--enable-rubyinterp",
"--enable-tclinterp"
if ARGV.include? "--no-icons"
inreplace "src/MacVim/icons/Makefile", "$(MAKE) -C makeicns", ""
inreplace "src/MacVim/icons/make_icons.py", "dont_create = False", "dont_create = True"
end
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