superenv: favor /opt/X11 over /usr/X11 when both exist

This is the order of precedence used elsewhere in Homebrew when
detecting X11 versions and prefixes.

Fixes Homebrew/homebrew#16598.
This commit is contained in:
Jack Nagel 2013-01-20 19:44:29 -06:00
parent 7f9fbe2636
commit d4dc1bbd15

View File

@ -290,7 +290,7 @@ module MacSystem extend self
end
def x11_prefix
@x11_prefix ||= %W[/usr/X11 /opt/X11
@x11_prefix ||= %W[/opt/X11 /usr/X11
#{MacOS.sdk_path}/usr/X11].find{|path| File.directory? "#{path}/include" }
end