aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-02-07 19:30:08 -0600
committerJack Nagel2012-02-07 19:54:49 -0600
commitbc4848e9b0b1373eb6f554bb8c71f8fd5568279c (patch)
tree7f4732d9d07fd972a276d8e9ea2b261c78fb2676 /Library
parent56200d47752fbf8d97e930a5cab4b19260287f69 (diff)
downloadhomebrew-bc4848e9b0b1373eb6f554bb8c71f8fd5568279c.tar.bz2
pango: apply patch from MacPorts
Other formula that use pango with glib 2.30.x have issues when they see the deprecated G_CONST_RETURN; this fix should already be present in 1.29.x. Also take the opportunity to reorder the formula a bit. Fixes #10032. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pango.rb26
1 files changed, 18 insertions, 8 deletions
diff --git a/Library/Formula/pango.rb b/Library/Formula/pango.rb
index 7ccb6b732..3a9024a4c 100644
--- a/Library/Formula/pango.rb
+++ b/Library/Formula/pango.rb
@@ -8,19 +8,11 @@ class Pango < Formula
devel do
url 'http://ftp.gnome.org/pub/gnome/sources/pango/1.29/pango-1.29.4.tar.bz2'
sha256 'f15deecaecf1e9dcb7db0e4947d12b5bcff112586434f8d30a5afd750747ff2b'
-
- # Fixes font size rendering in lion. See the following post for details
- # http://web.me.com/aschweiz/Website/Blog/Entries/2011/10/6_CoreText_vs._FontConfig.html
- def patches
- "http://web.me.com/aschweiz/Website/Blog/Entries/2011/10/6_CoreText_vs._FontConfig_files/pango-1.29.3-coretext.patch"
- end if MacOS.lion?
end
depends_on 'pkg-config' => :build
depends_on 'glib'
- fails_with_llvm "Undefined symbols when linking", :build => "2326"
-
if MacOS.leopard?
depends_on 'fontconfig' # Leopard's fontconfig is too old.
depends_on 'cairo' # Leopard doesn't come with Cairo.
@@ -32,6 +24,24 @@ class Pango < Formula
depends_on 'cairo'
end
+ fails_with_llvm "Undefined symbols when linking", :build => "2326"
+
+ def patches
+ p = {}
+ unless ARGV.build_devel?
+ # Some things that depend on pango and glib 2.30.x have issues with the deprecated
+ # G_CONST_RETURN. Shouldn't be an issue with 1.29.x.
+ p[:p0] = "https://trac.macports.org/export/89719/trunk/dports/x11/pango/files/patch-G_CONST_RETURN.diff"
+ end
+
+ if ARGV.build_devel? and MacOS.lion?
+ # Fixes font size rendering in lion. See the following post for details
+ # http://web.me.com/aschweiz/Website/Blog/Entries/2011/10/6_CoreText_vs._FontConfig.html
+ p[:p1] = "http://web.me.com/aschweiz/Website/Blog/Entries/2011/10/6_CoreText_vs._FontConfig_files/pango-1.29.3-coretext.patch"
+ end
+ return p
+ end
+
def install
ENV.x11
system "./configure", "--disable-dependency-tracking", "--disable-debug",