apr_requirement: favour system as much as possible
This commit is contained in:
parent
b6ecaa26f5
commit
fcc9cfa6ae
@ -12,11 +12,14 @@ class AprRequirement < Requirement
|
||||
end
|
||||
|
||||
env do
|
||||
# Prefer system Apr as much as possible, even if our's is installed.
|
||||
unless MacOS.version > :leopard && MacOS.version < :sierra && MacOS::CLT.installed?
|
||||
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
|
||||
|
||||
def to_dependency
|
||||
super.extend Module.new {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user