diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2012-12-19 22:13:06 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2012-12-19 22:13:06 -0500 |
commit | 21bbdcb0f40e8c86cd4d1bef5ae063460e682358 (patch) | |
tree | f65bb81386029b68b4e57b4727326d1cdacbb979 /community/dia | |
parent | e5195f280a1c97e4152a5772768917284d367657 (diff) |
Add dia-0.97.2-glib.patch
Diffstat (limited to 'community/dia')
-rw-r--r-- | community/dia/PKGBUILD | 8 | ||||
-rw-r--r-- | community/dia/dia-0.97.2-glib.patch | 40 |
2 files changed, 45 insertions, 3 deletions
diff --git a/community/dia/PKGBUILD b/community/dia/PKGBUILD index e8cc28731..ed33f7837 100644 --- a/community/dia/PKGBUILD +++ b/community/dia/PKGBUILD @@ -17,13 +17,15 @@ makedepends=('intltool' 'python2' 'docbook-xsl') optdepends=('python2') options=('!libtool' 'docs' '!emptydirs') source=("ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.97/${pkgname}-${pkgver}.tar.xz" - "dia-overflow-fix.patch") + "dia-overflow-fix.patch" + "dia-0.97.2-glib.patch") md5sums=('1e1180a513fb567709b09bc19f12105e' - '8fd9a2ad35b5a6fd8c758d7c73dbfe66') + '8fd9a2ad35b5a6fd8c758d7c73dbfe66' + '430d39de524c112f39a4bd9801038b05') build() { cd "${srcdir}/${pkgname}-${pkgver}" - + patch -Np1 -i ${srcdir}/dia-0.97.2-glib.patch export PYTHON=/usr/bin/python2 for file in `find -type f -name '*.py'`; do sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "$file" diff --git a/community/dia/dia-0.97.2-glib.patch b/community/dia/dia-0.97.2-glib.patch new file mode 100644 index 000000000..dcda07392 --- /dev/null +++ b/community/dia/dia-0.97.2-glib.patch @@ -0,0 +1,40 @@ +--- dia-0.97.2.orig/objects/custom/shape_typeinfo.c 2009-11-07 09:28:34.000000000 -0500 ++++ dia-0.97.2/objects/custom/shape_typeinfo.c 2012-12-19 13:59:45.985417287 -0500 +@@ -27,8 +27,7 @@ + #include "custom_util.h" + #include <string.h> + #include <stdarg.h> +-#include <glib/gstrfuncs.h> +-#include <glib/gstdio.h> ++#include <glib.h> + #include <libxml/parser.h> + + /* +--- dia-0.97.2.orig/tests/test-boundingbox.c 2009-11-07 09:28:35.000000000 -0500 ++++ dia-0.97.2/tests/test-boundingbox.c 2012-12-19 14:01:03.115674866 -0500 +@@ -26,11 +26,6 @@ + #define G_LOG_DOMAIN "Dia" + + #include <glib.h> +-#include <glib-object.h> +- +-#if GLIB_CHECK_VERSION(2,16,0) +-#include <glib/gtestutils.h> +-#endif + #include "dialib.h" + + /* +--- dia-0.97.2.orig/tests/test-objects.c 2009-11-07 09:28:35.000000000 -0500 ++++ dia-0.97.2/tests/test-objects.c 2012-12-19 14:01:43.978961390 -0500 +@@ -26,11 +26,6 @@ + #define G_LOG_DOMAIN "Dia" + + #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" |