diff options
| author | Jiang Xin | 2013-04-10 16:40:12 +0800 |
|---|---|---|
| committer | Jack Nagel | 2013-04-11 23:36:52 -0500 |
| commit | fef0e870e3a8b9ff3a862faaf4af04e0bd4d9543 (patch) | |
| tree | 84085d222dcd3fe9dd6c65d2a2e7237fc4682e99 /Library | |
| parent | e155f59f0edadaee925cbb58a39551c55dcb8a41 (diff) | |
| download | homebrew-fef0e870e3a8b9ff3a862faaf4af04e0bd4d9543.tar.bz2 | |
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 <worldhello.net@gmail.com>
Closes #19097.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/git.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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}", |
