aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2015-02-02 00:39:04 -0500
committerJack Nagel2015-02-02 00:39:04 -0500
commit12e4602a3b77c80f2f5fda187f6222bf6573cf74 (patch)
treee9e1bc0c421be9dbc988da1c179b07b3c3c17764 /Library/Homebrew
parent5e854164a7a11cb6bf44e8dde414dc0c703fa52e (diff)
downloadbrew-12e4602a3b77c80f2f5fda187f6222bf6573cf74.tar.bz2
AprRequirement's default formula should be apr-util
This matches the recommendation in the message.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/requirements/apr_dependency.rb9
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