aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-02-13 23:45:50 -0600
committerJack Nagel2013-02-13 23:48:27 -0600
commit4b0853899b79409eba1e8aba54822bce4212781a (patch)
treec72d7be56159f2a604ab5812b68d2eecce8c2abe /Library/Formula
parent47df68d0c627eb27ed1c521fff6626499b9ea4c6 (diff)
downloadhomebrew-4b0853899b79409eba1e8aba54822bce4212781a.tar.bz2
vim: add comment discouraging patches to hardcode ruby
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/vim.rb21
1 files changed, 9 insertions, 12 deletions
diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb
index 73cfab0d1..fde89b1c9 100644
--- a/Library/Formula/vim.rb
+++ b/Library/Formula/vim.rb
@@ -30,15 +30,15 @@ class Vim < Formula
end
end.compact
- # Why are we specifying HOMEBREW_PREFIX as the prefix?
- #
- # To make vim look for the system vimscript files in the
- # right place, we need to tell it about HOMEBREW_PREFIX.
- # The actual install location will still be in the Cellar.
- #
- # This way, user can create /usr/local/share/vim/vimrc
- # or /usr/local/share/vim/vimfiles and they won't end up
- # in the Cellar, and be removed when vim is upgraded.
+ # 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
+ # version is first in your PATH when building vim.
+
+ # We specify HOMEBREW_PREFIX as the prefix to make vim look in the
+ # the right place (HOMEBREW_PREFIX/share/vim/{vimrc,vimfiles}) for
+ # system vimscript files. We specify the normal installation prefix
+ # when calling "make install".
system "./configure", "--prefix=#{HOMEBREW_PREFIX}",
"--mandir=#{man}",
"--enable-gui=no",
@@ -50,9 +50,6 @@ class Vim < Formula
"--with-features=huge",
*language_opts
system "make"
-
- # Even though we specified HOMEBREW_PREFIX for configure,
- # we still want to install it in the Cellar location.
system "make", "install", "prefix=#{prefix}"
end
end