aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorRekky2013-03-17 22:20:01 +0400
committerAdam Vandenberg2013-03-19 09:16:46 -0700
commitd633ac6f574de8f87a4bb6295cf8a38b23bf4032 (patch)
tree2e361978557bdca97bff3ff3e8014a678fa4be2e /Library
parent94684c36af0a26ed6fb9c8df045b2a054f17ddd9 (diff)
downloadhomebrew-d633ac6f574de8f87a4bb6295cf8a38b23bf4032.tar.bz2
vim: build without NLS is optional now
Closes #18530. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
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