From fef0e870e3a8b9ff3a862faaf4af04e0bd4d9543 Mon Sep 17 00:00:00 2001 From: Jiang Xin Date: Wed, 10 Apr 2013 16:40:12 +0800 Subject: git: add optional gettext dep The localization for Git has been started since v1.7.10, and it needs gettext to work properly. To install git with l10n translations, run this command: brew install --with-gettext git Signed-off-by: Jiang Xin Closes #19097. Signed-off-by: Jack Nagel --- Library/Formula/git.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index 7005ee339..4d22adc22 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -21,6 +21,7 @@ class Git < Formula option 'without-completions', 'Disable bash/zsh completions from "contrib" directory' depends_on 'pcre' => :optional + depends_on 'gettext' => :optional def install # If these things are installed, tell Git build system to not use them @@ -28,7 +29,6 @@ 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['NO_GETTEXT'] = '1' ENV['PERL_PATH'] = which 'perl' # workaround for users of perlbrew ENV['PYTHON_PATH'] = which 'python' # python can be brewed or unbrewed @@ -42,6 +42,8 @@ class Git < Formula ENV['LIBPCREDIR'] = HOMEBREW_PREFIX end + ENV['NO_GETTEXT'] = '1' unless build.with? 'gettext' + system "make", "prefix=#{prefix}", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}", -- cgit v1.2.3