Skip to content

Commit

Permalink
Add modular x11 dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored and fgeller committed Aug 22, 2012
1 parent 46bff90 commit 913d20d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Library/Homebrew/dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ def parse_symbol_spec spec, tag
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}"
Expand Down

0 comments on commit 913d20d

Please sign in to comment.