aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-08-22 13:34:26 -0700
committerMike McQuaid2012-08-22 13:34:26 -0700
commite6647d3a77256673f603b4ebfe3e2db28a870982 (patch)
tree189cebbfb2501ec060d2afcb4359aaf4a7cdd4e2 /Library
parent60c05e3223161de849b3b9690337ae3d13c4f8dc (diff)
downloadhomebrew-e6647d3a77256673f603b4ebfe3e2db28a870982.tar.bz2
Don't use XQuartz for e.g. :libpng on 10.8.
XQuartz isn't added to the default library paths so if something is linked against a Homebrew libpng then it doesn't work against the XQuartz libpng. The CLT provides X11 on Lion so don't request users install XQuartz if it isn't needed on Mountain Lion. Fixes #14325.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dependencies.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dependencies.rb b/Library/Homebrew/dependencies.rb
index c35bce9fd..a8ff1a8ad 100644
--- a/Library/Homebrew/dependencies.rb
+++ b/Library/Homebrew/dependencies.rb
@@ -63,8 +63,8 @@ private
# Xcode no longer provides autotools or some other build tools
Dependency.new(spec.to_s) unless MacOS::Xcode.provides_autotools?
when :libpng, :freetype, :pixman, :fontconfig, :cairo
- if MacOS.version >= :lion
- MacOS::XQuartz.installed? ? X11Dependency.new(tag) : Dependency.new(spec.to_s)
+ if MacOS.version >= :mountain_lion
+ Dependency.new(spec.to_s)
else
X11Dependency.new(tag)
end