aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorwaltari2011-12-02 13:09:29 +0900
committerJack Nagel2011-12-02 14:25:41 -0600
commitc813d33185d9de06c779f9b0c601c8b008d727dd (patch)
treebc523d0200f2a3a5099c34d4be5fc4a81304aa46 /Library
parentda2c7a6af01e5de371c557892c1a5333b111262b (diff)
downloadhomebrew-c813d33185d9de06c779f9b0c601c8b008d727dd.tar.bz2
git: add "--with-pcre" option
Closes #8929. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/git.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb
index 8588beab0..3b16f6569 100644
--- a/Library/Formula/git.rb
+++ b/Library/Formula/git.rb
@@ -15,8 +15,13 @@ class Git < Formula
sha1 '5b6920989480a37ec65977e756b24961578795dd'
homepage 'http://git-scm.com'
+ depends_on 'pcre' if ARGV.include? '--with-pcre'
+
def options
- [['--with-blk-sha1', 'compile with the optimized SHA1 implementation']]
+ [
+ ['--with-blk-sha1', 'compile with the optimized SHA1 implementation'],
+ ['--with-pcre', 'compile with the PCRE library'],
+ ]
end
def install
@@ -30,6 +35,11 @@ class Git < Formula
ENV['BLK_SHA1']='1' if ARGV.include? '--with-blk-sha1'
+ if ARGV.include? '--with-pcre'
+ ENV['USE_LIBPCRE']='1'
+ ENV['LIBPCREDIR'] = HOMEBREW_PREFIX
+ end
+
inreplace "Makefile" do |s|
s.remove_make_var! %w{CC CFLAGS LDFLAGS}
end