aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/git.rb6
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