From 8368fe489bde47b8f201bfcfdf328944fdf7092b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 26 Jul 2011 01:15:49 -0500 Subject: git: add option to compile with BLK_SHA1 Signed-off-by: Adam Vandenberg --- Library/Formula/git.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Formula/git.rb') 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 -- cgit v1.2.3