From 4c9220e87f90453d75d85f5871e306a6aaaed854 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 31 Jan 2013 18:15:16 -0600 Subject: git: use optional dep --- Library/Formula/git.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Library/Formula/git.rb') diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index 94fca646e..31a539a4a 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -17,10 +17,9 @@ class Git < Formula head 'https://github.com/git/git.git' - depends_on 'pcre' if build.include? 'with-pcre' - option 'with-blk-sha1', 'Compile with the block-optimized SHA1 implementation' - option 'with-pcre', 'Compile with the PCRE library' + + depends_on 'pcre' => :optional def install # If these things are installed, tell Git build system to not use them @@ -37,7 +36,7 @@ class Git < Formula ENV['BLK_SHA1'] = '1' if build.include? 'with-blk-sha1' - if build.include? 'with-pcre' + if build.with? 'pcre' ENV['USE_LIBPCRE'] = '1' ENV['LIBPCREDIR'] = HOMEBREW_PREFIX end -- cgit v1.2.3