From d633ac6f574de8f87a4bb6295cf8a38b23bf4032 Mon Sep 17 00:00:00 2001 From: Rekky Date: Sun, 17 Mar 2013 22:20:01 +0400 Subject: vim: build without NLS is optional now Closes #18530. Signed-off-by: Adam Vandenberg --- Library/Formula/vim.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Library/Formula/vim.rb') diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb index 85d8ce575..ea1f28396 100644 --- a/Library/Formula/vim.rb +++ b/Library/Formula/vim.rb @@ -19,6 +19,8 @@ class Vim < Formula option "without-#{language}", "Build vim without #{language} support" end + option "disable-nls", "Build vim without National Language Support (translated messages, keymaps)" + def install ENV['LUA_PREFIX'] = HOMEBREW_PREFIX @@ -30,6 +32,9 @@ class Vim < Formula end end.compact + opts = language_opts + opts << "--disable-nls" if build.include? "disable-nls" + # 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 @@ -43,12 +48,11 @@ class Vim < Formula "--mandir=#{man}", "--enable-gui=no", "--without-x", - "--disable-nls", "--enable-multibyte", "--with-tlib=ncurses", "--enable-cscope", "--with-features=huge", - *language_opts + *opts system "make" # If stripping the binaries is not enabled, vim will segfault with # statically-linked interpreters like ruby -- cgit v1.2.3