aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-08-25 16:40:01 -0500
committerJack Nagel2012-08-26 18:24:45 -0500
commit1c0fcc4e74045a00b27422e16f8b17462a99eb4e (patch)
tree66bef536b6bb5e0d20c334c750fddf34477b05c8 /Library
parent0dba76a6beda38e9e5357faaf3339408dcea0879 (diff)
downloadhomebrew-1c0fcc4e74045a00b27422e16f8b17462a99eb4e.tar.bz2
pango: enable X11 by default, provide 'without-x' option
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pango.rb23
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