Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clean up some Cairo dependencies

Add a comment to Pango explaining why Cairo is required on Lion. Remove Cairo
dependencies from Graphviz as the Pango dependency will include it if needed.

Closes #8821.
Closes #9238.
  • Loading branch information...
commit e562953f76507f1a316b3ecb39bd936584603190 1 parent a2ca892
@Sharpie Sharpie authored
Showing with 6 additions and 6 deletions.
  1. +1 −5 Library/Formula/graphviz.rb
  2. +5 −1 Library/Formula/pango.rb
View
6 Library/Formula/graphviz.rb
@@ -11,11 +11,7 @@ class Graphviz < Formula
depends_on 'pkg-config' => :build
- if ARGV.include? '--with-pangocairo'
- depends_on 'pango'
- depends_on 'cairo' if MacOS.leopard?
- end
-
+ depends_on 'pango' if ARGV.include? '--with-pangocairo'
depends_on 'swig' if build_bindings?
def options
View
6 Library/Formula/pango.rb
@@ -14,7 +14,11 @@ class Pango < Formula
depends_on 'fontconfig' # Leopard's fontconfig is too old.
depends_on 'cairo' # Leopard doesn't come with Cairo.
elsif MacOS.lion?
- depends_on 'cairo' # links against system Cairo without this
+ # The Cairo library shipped with Lion contains a flaw that causes Graphviz
+ # to segfault. See the following ticket for information:
+ #
+ # https://trac.macports.org/ticket/30370
+ depends_on 'cairo'
end
def install
Please sign in to comment.
Something went wrong with that request. Please try again.