aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-07-30 21:34:44 +0100
committerMike McQuaid2012-08-08 18:19:21 +0100
commit3895b9c415ef0b6dd10a0b69d69e88f203ac8604 (patch)
tree2d77dc521e1a0647009cc00decec511df1948ab1 /Library
parent16594820aa0d8bc5594ef3253a510565c415f13d (diff)
downloadhomebrew-3895b9c415ef0b6dd10a0b69d69e88f203ac8604.tar.bz2
Add modular x11 dependencies.
Fixes #13638.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dependencies.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/dependencies.rb b/Library/Homebrew/dependencies.rb
index 38308c087..1db0fcf24 100644
--- a/Library/Homebrew/dependencies.rb
+++ b/Library/Homebrew/dependencies.rb
@@ -64,7 +64,13 @@ private
when :autoconf, :automake, :bsdmake, :libtool
# Xcode no longer provides autotools or some other build tools
Dependency.new(spec.to_s) unless MacOS::Xcode.provides_autotools?
- when :x11, :libpng
+ when :libpng, :freetype, :pixman, :fontconfig, :cairo
+ if MacOS.lion_or_newer?
+ MacOS::XQuartz.installed? ? X11Dependency.new(tag) : Dependency.new(spec.to_s)
+ else
+ X11Dependency.new(tag)
+ end
+ when :x11
X11Dependency.new(tag)
else
raise "Unsupported special dependency #{spec}"