git: add option to compile with BLK_SHA1

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Jack Nagel authored and Adam Vandenberg committed 2011-07-27 17:40:20 -07:00
1 parent c9a3effb82
commit 8368fe489b
1 file changed
+6
+6
View File
@@ -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