diff options
| author | Jack Nagel | 2011-07-26 01:15:49 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2011-07-27 17:40:20 -0700 |
| commit | 8368fe489bde47b8f201bfcfdf328944fdf7092b (patch) | |
| tree | 67670139ef766d29940fab2bc7ec3d9475c191fe /Library/Formula/git.rb | |
| parent | c9a3effb82759589da885c6622c703630d6ef751 (diff) | |
| download | homebrew-8368fe489bde47b8f201bfcfdf328944fdf7092b.tar.bz2 | |
git: add option to compile with BLK_SHA1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/git.rb')
| -rw-r--r-- | Library/Formula/git.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index 236170ef2..4e52f2d12 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -15,6 +15,10 @@ class Git < Formula md5 '9e0a438eb71e89eedb61f89470ed32a0' homepage 'http://git-scm.com' + def options + [['--with-blk-sha1', 'compile with the optimized SHA1 implementation']] + end + def install # If these things are installed, tell Git build system to not use them ENV['NO_FINK']='1' @@ -24,6 +28,8 @@ class Git < Formula # Build verbosely. ENV['V']='1' + ENV['BLK_SHA1']='YesPlease' if ARGV.include? '--with-blk-sha1' + inreplace "Makefile" do |s| s.remove_make_var! %w{CFLAGS LDFLAGS} end |
