From ba9091bec2fe05219ca056324c9462f32b0f0f95 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Fri, 6 Jul 2012 21:45:40 -0700 Subject: [PATCH] pygtk: depends_on :x11 pygtk-2.24.0 on Lion will not compile because it can't find `. This occurs because pkgconfig has trouble querying the pangocairo.pc module because it complains that a required module, `fontconfig` can't be found and suggests adding it's path to `PKG_CONFIG_PATH`. We know `fontconfig` is a part of X11. So add `depends_on :x11` to the formula so that all the pkgconfig modules can be located. Tested by importing pygtk, importing cairo, and by running `brew test -v pygtk` on Lion with clang and llvm from XCode-4.3.3. Fixes Homebrew/homebrew#13205 and possibly Homebrew/homebrew#13256 Closes Homebrew/homebrew#13257. Signed-off-by: Jack Nagel --- Formula/pygtk.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/pygtk.rb b/Formula/pygtk.rb index dbfa4c4101..ebcf17f080 100644 --- a/Formula/pygtk.rb +++ b/Formula/pygtk.rb @@ -5,6 +5,7 @@ class Pygtk < Formula homepage 'http://www.pygtk.org/' md5 'a1051d5794fd7696d3c1af6422d17a49' + depends_on :x11 depends_on 'glib' depends_on 'gtk+' depends_on 'pygobject'