From 3ca38e8b722593caba567594de09be39701490c0 Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Sun, 1 Feb 2015 23:32:01 -0800 Subject: pygobject3: avoid redefining structs Applies upstream commit to avoid compile error (with gcc?). Fixes #34734. Fixes #36207. Closes #36452. --- Library/Formula/pygobject3.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library/Formula/pygobject3.rb') diff --git a/Library/Formula/pygobject3.rb b/Library/Formula/pygobject3.rb index df5f69f99..89ce8de5e 100644 --- a/Library/Formula/pygobject3.rb +++ b/Library/Formula/pygobject3.rb @@ -34,6 +34,14 @@ class Pygobject3 < Formula sha1 "1d7aad99256d87d616a41b7026cd05267bd9f97f" end if build.with? 'tests' + # resolves "error: redefinition of typedef 'PyGIFunctionCache'" + # https://github.com/Homebrew/homebrew/issues/34734 + # https://bugzilla.gnome.org/show_bug.cgi?id=737874 + patch do + url "https://github.com/GNOME/pygobject/commit/0de827190e7575f7e1e339337b78c7d6e46957b4.diff" + sha1 "6a9c1f510964e9c09531c47538ca376af14522c5" + end + def install ENV.universal_binary if build.universal? -- cgit v1.2.3