From 1c0fcc4e74045a00b27422e16f8b17462a99eb4e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 25 Aug 2012 16:40:01 -0500 Subject: pango: enable X11 by default, provide 'without-x' option Signed-off-by: Jack Nagel --- Library/Formula/pango.rb | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3