aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-11-14 10:46:16 -0800
committerAdam Vandenberg2010-11-14 10:46:16 -0800
commitb323b9b64249e16765f19ff9dc7b8b36a49165de (patch)
treef692fb9675bea6f94ed51d4bbc3a8b7dc1e154a5 /Library
parent54e3f2c13970b17a6f90fb3b086158ccccea139b (diff)
downloadhomebrew-b323b9b64249e16765f19ff9dc7b8b36a49165de.tar.bz2
gtk+ - fix compile on Leopard and add test
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gtk+.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/gtk+.rb b/Library/Formula/gtk+.rb
index 610455d2a..2c70512ea 100644
--- a/Library/Formula/gtk+.rb
+++ b/Library/Formula/gtk+.rb
@@ -9,6 +9,11 @@ class Gtkx <Formula
depends_on 'glib'
depends_on 'jpeg'
depends_on 'libtiff'
+
+ # Used by pango, but keg-only, so needs to be added to
+ # the flags for gtk+ explicitly.
+ depends_on 'cairo' if MACOS_VERSION < 10.6
+
depends_on 'pango'
depends_on 'jasper' => :optional
depends_on 'atk' => :optional
@@ -20,4 +25,8 @@ class Gtkx <Formula
"--disable-glibtest"
system "make install"
end
+
+ def test
+ system "gtk-demo"
+ end
end