diff options
| author | Jack Nagel | 2015-02-02 00:39:04 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-02-02 00:39:04 -0500 |
| commit | 12e4602a3b77c80f2f5fda187f6222bf6573cf74 (patch) | |
| tree | e9e1bc0c421be9dbc988da1c179b07b3c3c17764 /Library | |
| parent | 5e854164a7a11cb6bf44e8dde414dc0c703fa52e (diff) | |
| download | brew-12e4602a3b77c80f2f5fda187f6222bf6573cf74.tar.bz2 | |
AprRequirement's default formula should be apr-util
This matches the recommendation in the message.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirements/apr_dependency.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Homebrew/requirements/apr_dependency.rb b/Library/Homebrew/requirements/apr_dependency.rb index f996b5b79..f2aab0581 100644 --- a/Library/Homebrew/requirements/apr_dependency.rb +++ b/Library/Homebrew/requirements/apr_dependency.rb @@ -2,15 +2,16 @@ require "requirement" class AprDependency < Requirement fatal true - default_formula "apr" + default_formula "apr-util" satisfy { MacOS::CLT.installed? || Formula["apr"].installed? } env do unless MacOS::CLT.installed? - ENV.prepend_path "PATH", "#{Formula["apr-util"].opt_prefix}/bin" - ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["apr"].opt_prefix}/libexec/lib/pkgconfig" - ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["apr-util"].opt_prefix}/libexec/lib/pkgconfig" + ENV.prepend_path "PATH", Formula["apr-util"].opt_bin + ENV.prepend_path "PATH", Formula["apr"].opt_bin + ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["apr"].opt_libexec}/lib/pkgconfig" + ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["apr-util"].opt_libexec}/lib/pkgconfig" end end |
