mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-03 05:59:45 -05:00
git: add option to compile with BLK_SHA1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
1 parent
c9a3effb82
commit
8368fe489b
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user