diff options
Diffstat (limited to 'Library/Formula/macvim.rb')
| -rw-r--r-- | Library/Formula/macvim.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb index b87eb71ca..a43c405b5 100644 --- a/Library/Formula/macvim.rb +++ b/Library/Formula/macvim.rb @@ -4,6 +4,10 @@ class Macvim <Formula head 'git://repo.or.cz/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. @@ -20,6 +24,12 @@ class Macvim <Formula "--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" |
