aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/macvim.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-14 14:00:47 -0700
committerAdam Vandenberg2010-08-14 14:00:47 -0700
commit203ac37ce5572cfcf965c9ed60a41ce5d8d2dfd8 (patch)
treef96d10cda12439715364de3406e20b28207ea8d0 /Library/Formula/macvim.rb
parente763208f5bdefe161171e7ab112687bd672977e6 (diff)
downloadhomebrew-203ac37ce5572cfcf965c9ed60a41ce5d8d2dfd8.tar.bz2
Add --no-icons option to MacVim
Diffstat (limited to 'Library/Formula/macvim.rb')
-rw-r--r--Library/Formula/macvim.rb10
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"