diff options
| author | Dominique Orban | 2013-10-18 17:11:00 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-20 10:01:52 -0700 |
| commit | cf715c0e6611e7692c6e9df9bd0e12af5551b1eb (patch) | |
| tree | 6dad40d10a47b249bebf8e38d993d90ea9163d1f /Library/Formula/vim.rb | |
| parent | b8707947da7dbd22c43dd77655fb78f3d8f1737e (diff) | |
| download | homebrew-cf715c0e6611e7692c6e9df9bd0e12af5551b1eb.tar.bz2 | |
vim: add client/server option
Closes #23355.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/vim.rb')
| -rw-r--r-- | Library/Formula/vim.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb index d9eed53e0..dc748125a 100644 --- a/Library/Formula/vim.rb +++ b/Library/Formula/vim.rb @@ -15,6 +15,7 @@ class Vim < Formula option "override-system-vi", "Override system vi" option "disable-nls", "Build vim without National Language Support (translated messages, keymaps)" + option "with-client-server", "Enable client/server mode" LANGUAGES_OPTIONAL = %w(lua mzscheme perl tcl) LANGUAGES_DEFAULT = %w(ruby python) @@ -28,6 +29,7 @@ class Vim < Formula depends_on :python => :recommended depends_on 'lua' => :optional + depends_on 'gtk+' if build.with? 'client-server' # vim uses the obsolete Apple-only -no-cpp-precomp flag, which # FSF GCC can't understand; reported upstream: @@ -59,6 +61,13 @@ class Vim < Formula end end + if build.with? 'client-server' + opts << '--enable-gui=gtk2' + else + opts << "--enable-gui=no" + opts << "--without-x" + end + # XXX: Please do not submit a pull request that hardcodes the path # to ruby: vim can be compiled against 1.8.x or 1.9.3-p385 and up. # If you have problems with vim because of ruby, ensure a compatible @@ -70,8 +79,6 @@ class Vim < Formula # when calling "make install". system "./configure", "--prefix=#{HOMEBREW_PREFIX}", "--mandir=#{man}", - "--enable-gui=no", - "--without-x", "--enable-multibyte", "--with-tlib=ncurses", "--enable-cscope", |
