aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-05-01 12:28:21 -0500
committerMisty De Meo2012-05-01 12:29:55 -0500
commit9a1063130b0307ceb70e0193fa81dbde9364aa79 (patch)
tree73af7bc9f80503989f8c966e6eb83380914a98ea /Library
parent548d6a54adcf26e12b538e9cd0749b961dff51dc (diff)
downloadhomebrew-9a1063130b0307ceb70e0193fa81dbde9364aa79.tar.bz2
dia: add patch for glib 2.31+
Fixes #11987
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/dia.rb64
1 files changed, 64 insertions, 0 deletions
diff --git a/Library/Formula/dia.rb b/Library/Formula/dia.rb
index 2805098e0..339d6d660 100644
--- a/Library/Formula/dia.rb
+++ b/Library/Formula/dia.rb
@@ -13,6 +13,13 @@ class Dia < Formula
depends_on 'libtiff'
depends_on 'gtk+'
+ def patches
+ # fixes compilation with glib 2.31+
+ # see https://bugzilla.gnome.org/show_bug.cgi?id=665335
+ # fixed in master branch, should be removable in next release
+ DATA
+ end
+
def install
ENV.x11
# fix for Leopard, potentially others with isspecial defined elswhere
@@ -24,3 +31,60 @@ class Dia < Formula
rm_rf share+"applications"
end
end
+
+__END__
+diff --git a/objects/custom/shape_typeinfo.c b/objects/custom/shape_typeinfo.c
+index c6133b1..3fb3d73 100644
+--- a/objects/custom/shape_typeinfo.c
++++ b/objects/custom/shape_typeinfo.c
+@@ -27,7 +27,7 @@
+ #include "custom_util.h"
+ #include <string.h>
+ #include <stdarg.h>
+-#include <glib/gstrfuncs.h>
++#include <glib.h>
+ #include <glib/gstdio.h>
+ #include <libxml/parser.h>
+
+diff --git a/plug-ins/pgf/render_pgf.c b/plug-ins/pgf/render_pgf.c
+index 3fe5bbd..24b812e 100644
+--- a/plug-ins/pgf/render_pgf.c
++++ b/plug-ins/pgf/render_pgf.c
+@@ -61,7 +61,7 @@ TODO:
+ #endif
+ #include <errno.h>
+
+-#include <glib/gprintf.h>
++#include <glib.h>
+ #include <glib/gstdio.h>
+
+ #include "intl.h"
+diff --git a/tests/test-boundingbox.c b/tests/test-boundingbox.c
+index 7adaab5..a13d018 100644
+--- a/tests/test-boundingbox.c
++++ b/tests/test-boundingbox.c
+@@ -28,9 +28,6 @@
+ #include <glib.h>
+ #include <glib-object.h>
+
+-#if GLIB_CHECK_VERSION(2,16,0)
+-#include <glib/gtestutils.h>
+-#endif
+ #include "dialib.h"
+
+ /*
+diff --git a/tests/test-objects.c b/tests/test-objects.c
+index 57d5675..c5980a5 100644
+--- a/tests/test-objects.c
++++ b/tests/test-objects.c
+@@ -28,10 +28,6 @@
+ #include <glib.h>
+ #include <glib-object.h>
+
+-#if GLIB_CHECK_VERSION(2,16,0)
+-#include <glib/gtestutils.h>
+-#endif
+-
+ #include "object.h"
+ #include "plug-ins.h"
+ #include "dialib.h"