diff options
| author | Jack Nagel | 2013-01-31 18:15:16 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-31 18:15:16 -0600 |
| commit | 4c9220e87f90453d75d85f5871e306a6aaaed854 (patch) | |
| tree | ff666a62d3f9fed4f3d2f827c267e285b113758b /Library/Formula/git.rb | |
| parent | a81d9ee7b3b5ab56c22b3d3a83dbef1904a13e42 (diff) | |
| download | homebrew-4c9220e87f90453d75d85f5871e306a6aaaed854.tar.bz2 | |
git: use optional dep
Diffstat (limited to 'Library/Formula/git.rb')
| -rw-r--r-- | Library/Formula/git.rb | 7 |
1 files changed, 3 insertions, 4 deletions
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 |
