aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/git.rb')
-rw-r--r--Library/Formula/git.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb
index 73ca95113..18e909d04 100644
--- a/Library/Formula/git.rb
+++ b/Library/Formula/git.rb
@@ -20,6 +20,7 @@ class Git < Formula
option 'with-blk-sha1', 'Compile with the block-optimized SHA1 implementation'
option 'without-completions', 'Disable bash/zsh completions from "contrib" directory'
+ depends_on :python
depends_on 'pcre' => :optional
depends_on 'gettext' => :optional
@@ -29,8 +30,9 @@ class Git < Formula
ENV['NO_DARWIN_PORTS'] = '1'
ENV['V'] = '1' # build verbosely
ENV['NO_R_TO_GCC_LINKER'] = '1' # pass arguments to LD correctly
+
ENV['PERL_PATH'] = which 'perl' # workaround for users of perlbrew
- ENV['PYTHON_PATH'] = which 'python' # python can be brewed or unbrewed
+ ENV['PYTHON_PATH'] = python.binary if python
# Clean XCode 4.x installs don't include Perl MakeMaker
ENV['NO_PERL_MAKEMAKER'] = '1' if MacOS.version >= :lion