diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pango.rb | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Library/Formula/pango.rb b/Library/Formula/pango.rb index 18bef8106..44fac3ad2 100644 --- a/Library/Formula/pango.rb +++ b/Library/Formula/pango.rb @@ -5,11 +5,13 @@ class Pango < Formula url 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.30/pango-1.30.1.tar.xz' sha256 '3a8c061e143c272ddcd5467b3567e970cfbb64d1d1600a8f8e62435556220cbe' + option 'without-x', 'Build without X11 support' + depends_on 'pkg-config' => :build depends_on 'xz' => :build depends_on 'glib' - - depends_on 'fontconfig' if MacOS.leopard? + depends_on :fontconfig + depends_on :x11 unless build.include? 'without-x' # The Cairo library shipped with Lion contains a flaw that causes Graphviz # to segfault. See the following ticket for information: @@ -23,12 +25,17 @@ class Pango < Formula end def install - system "./configure", "--disable-dependency-tracking", - "--disable-debug", - "--prefix=#{prefix}", - "--enable-man", - "--with-html-dir=#{share}/doc", - "--disable-introspection" + args = %W[ + --disable-dependency-tracking + --prefix=#{prefix} + --enable-man + --with-html-dir=#{share}/doc + --disable-introspection + ] + + args << '--with-x' unless build.include? 'without-x' + + system "./configure", *args system "make" system "make install" end |
