aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vim.rb
diff options
context:
space:
mode:
authorSamuel John2013-06-11 10:46:35 +0200
committerSamuel John2013-06-11 10:46:35 +0200
commit231a297d9b5738948da59efd821fbd07ae3cb96c (patch)
tree8bb5e661b5836e8e38bb0b4ac9cb762484261ab9 /Library/Formula/vim.rb
parentafaaab19aec1b24aa2d5a1d49bb07679ed10b563 (diff)
downloadhomebrew-231a297d9b5738948da59efd821fbd07ae3cb96c.tar.bz2
Vim & MacVim: Fix support for brewed python
However, the downside is that we had to remove python3 support until that is fixed upstream.
Diffstat (limited to 'Library/Formula/vim.rb')
-rw-r--r--Library/Formula/vim.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb
index f48ef60a1..e0d665ce9 100644
--- a/Library/Formula/vim.rb
+++ b/Library/Formula/vim.rb
@@ -12,21 +12,19 @@ class Vim < Formula
# PATH as the user has set it right now.
env :std
- depends_on :hg => :build if build.head?
-
- LANGUAGES = %w(lua mzscheme perl python python3 tcl ruby)
+ LANGUAGES = %w(lua mzscheme perl python tcl ruby)
DEFAULT_LANGUAGES = %w(ruby python)
option "override-system-vi", "Override system vi"
+ option "disable-nls", "Build vim without National Language Support (translated messages, keymaps)"
+
LANGUAGES.each do |language|
option "with-#{language}", "Build vim with #{language} support"
option "without-#{language}", "Build vim without #{language} support"
end
- depends_on :python unless build.without? 'python'
- depends_on :python3 if build.with? 'python3'
-
- option "disable-nls", "Build vim without National Language Support (translated messages, keymaps)"
+ depends_on :hg => :build if build.head?
+ depends_on :python => :recommended
def install
ENV['LUA_PREFIX'] = HOMEBREW_PREFIX
@@ -42,6 +40,8 @@ class Vim < Formula
opts = language_opts
opts << "--disable-nls" if build.include? "disable-nls"
+ ENV.prepend 'LDFLAGS', "-F#{python.framework}" if python && python.brewed?
+
# 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