aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTim D. Smith2015-04-07 23:22:01 -0700
committerTim D. Smith2015-04-09 00:41:35 -0700
commita919a5fecfe3a9f0607cc93999658ef1c7f08e1c (patch)
treec0281b369ef6f0c30552a354afaebfdb61c1ae5c /Library/Formula
parentc74b5525cb9d2468916972fe03ceb776be88db33 (diff)
downloadhomebrew-a919a5fecfe3a9f0607cc93999658ef1c7f08e1c.tar.bz2
vim: enable system Python on Xcode-only systems
Closes #38471. Closes #31893.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/vim.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb
index 1381a31db..362f9947e 100644
--- a/Library/Formula/vim.rb
+++ b/Library/Formula/vim.rb
@@ -1,11 +1,9 @@
-require "formula"
-
class Vim < Formula
homepage "http://www.vim.org/"
head "https://vim.googlecode.com/hg/"
# This package tracks debian-unstable: http://packages.debian.org/unstable/vim
url "http://ftp.debian.org/debian/pool/main/v/vim/vim_7.4.488.orig.tar.gz"
- sha1 "6edad8cf9a08acb6a6e415b89bb13ccbd887d7c3"
+ sha256 "5b58ef7d4ce2c2eb84af2f3dbb3b5d6919adc97f12de1509a13681fa58936faf"
# We only have special support for finding depends_on :python, but not yet for
# :ruby, :perl etc., so we use the standard environment that leaves the
@@ -42,6 +40,12 @@ class Vim < Formula
# vim doesn't require any Python package, unset PYTHONPATH.
ENV.delete("PYTHONPATH")
+ if build.with?("python") && which("python").to_s == "/usr/bin/python" && !MacOS.clt_installed?
+ # break -syslibpath jail
+ ln_s "/System/Library/Frameworks", buildpath
+ ENV.append "LDFLAGS", "-F#{buildpath}/Frameworks"
+ end
+
opts = []
opts += LANGUAGES_OPTIONAL.map do |language|
"--enable-#{language}interp" if build.with? language