mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 21:19:58 -05:00
vim: inline some variables
This commit is contained in:
1 parent
85a666701f
commit
67e6e85fbd
1 file changed
+2
-5
@@ -23,12 +23,9 @@ class Vim < Formula
|
||||
ENV['LUA_PREFIX'] = HOMEBREW_PREFIX
|
||||
|
||||
language_opts = LANGUAGES.map do |language|
|
||||
with_option = "with-#{language}"
|
||||
without_option = "without-#{language}"
|
||||
|
||||
if DEFAULT_LANGUAGES.include? language and !build.include? without_option
|
||||
if DEFAULT_LANGUAGES.include? language and !build.include? "without-#{language}"
|
||||
"--enable-#{language}interp"
|
||||
elsif build.include? with_option
|
||||
elsif build.include? "with-#{language}"
|
||||
"--enable-#{language}interp"
|
||||
end
|
||||
end.compact
|
||||
|
||||
Reference in new issue
Block a user