Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

git: add "--with-pcre" option #8929

Closed
wants to merge 1 commit into from
Closed

git: add "--with-pcre" option #8929

wants to merge 1 commit into from

Conversation

waltarix
Copy link
Contributor

@waltarix waltarix commented Dec 2, 2011

The git's subcommand "grep" has a "-P" option to use Perl-compatible regexp(PCRE) patterns.
But it requires git to be linked against libpcre.

So this patch makes it possible to use it by linking against libpcre.

@@ -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']='yes'
ENV['LIBPCREDIR']=Formula.factory('pcre').prefix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should work to just say ENV['LIBPCREDIR'] = HOMEBREW_PREFIX.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops!
I've fixed it.
Thank you for your information.

@jacknagel
Copy link
Contributor

Pulled.

@jacknagel jacknagel closed this in c813d33 Dec 2, 2011
Sharpie pushed a commit to Sharpie/homebrew that referenced this pull request Sep 12, 2012
Closes Homebrew#8929.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
casallas pushed a commit to casallas/homebrew that referenced this pull request Sep 13, 2012
Closes Homebrew#8929.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request Dec 17, 2012
Closes Homebrew#8929.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants