apr_requirement: favour system as much as possible
This commit is contained in:
parent
b6ecaa26f5
commit
fcc9cfa6ae
@ -12,10 +12,13 @@ class AprRequirement < Requirement
|
|||||||
end
|
end
|
||||||
|
|
||||||
env do
|
env do
|
||||||
ENV.prepend_path "PATH", Formula["apr-util"].opt_bin
|
# Prefer system Apr as much as possible, even if our's is installed.
|
||||||
ENV.prepend_path "PATH", Formula["apr"].opt_bin
|
unless MacOS.version > :leopard && MacOS.version < :sierra && MacOS::CLT.installed?
|
||||||
ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["apr"].opt_libexec}/lib/pkgconfig"
|
ENV.prepend_path "PATH", Formula["apr-util"].opt_bin
|
||||||
ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["apr-util"].opt_libexec}/lib/pkgconfig"
|
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
|
end
|
||||||
|
|
||||||
def to_dependency
|
def to_dependency
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user