diff options
| author | Adam Vandenberg | 2012-08-09 16:28:35 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-09 16:28:35 -0700 |
| commit | c8692b443fbf515a1baad063ee27c57be1800b5b (patch) | |
| tree | c812a3c26a0113a8311b31126c3a88502c94b151 /Library/Formula/macvim.rb | |
| parent | 25bbb00eedf6fa6db9d60dc656f2476f7226f63e (diff) | |
| download | homebrew-c8692b443fbf515a1baad063ee27c57be1800b5b.tar.bz2 | |
macvim: use options dsl
Diffstat (limited to 'Library/Formula/macvim.rb')
| -rw-r--r-- | Library/Formula/macvim.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb index fd24aeac2..7a8532cec 100644 --- a/Library/Formula/macvim.rb +++ b/Library/Formula/macvim.rb @@ -8,11 +8,12 @@ class Macvim < Formula head 'https://github.com/b4winckler/macvim.git', :branch => 'master' + option "custom-icons", "Try to generate custom document icons" + option "override-system-vim", "Override system vim" + def options [ - ["--custom-icons", "Try to generate custom document icons."], ["--with-cscope", "Build with Cscope support."], - ["--override-system-vim", "Override system vim."], ["--with-lua", "Build with Lua scripting support."] ] end @@ -49,7 +50,7 @@ class Macvim < Formula system "./configure", *args # Building custom icons fails for many users, so off by default. - unless ARGV.include? "--custom-icons" + unless build.include? "custom-icons" inreplace "src/MacVim/icons/Makefile", "$(MAKE) -C makeicns", "" inreplace "src/MacVim/icons/make_icons.py", "dont_create = False", "dont_create = True" end @@ -68,7 +69,7 @@ class Macvim < Formula # Create MacVim vimdiff, view, ex equivalents executables = %w[mvimdiff mview mvimex] - executables += %w[vi vim vimdiff view vimex] if ARGV.include? "--override-system-vim" + executables += %w[vi vim vimdiff view vimex] if build.include? "override-system-vim" executables.each {|f| ln_s bin+'mvim', bin+f} end |
