aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/vim.rb8
1 files changed, 6 insertions, 2 deletions
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