2010-05-17 21:19:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dia < Formula
|
2010-07-26 15:41:23 +00:00
|
|
|
homepage 'http://live.gnome.org/Dia'
|
2012-02-06 07:31:29 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/dia/0.97/dia-0.97.2.tar.xz'
|
|
|
|
sha256 'a761478fb98697f71b00d3041d7c267f3db4b94fe33ac07c689cb89c4fe5eae1'
|
2010-07-26 15:41:23 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-02-18 00:56:36 +00:00
|
|
|
depends_on 'xz' => :build
|
2010-05-17 21:19:05 +00:00
|
|
|
depends_on 'intltool'
|
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'pango'
|
|
|
|
depends_on 'libtiff'
|
|
|
|
depends_on 'gtk+'
|
|
|
|
|
2012-05-01 17:28:21 +00:00
|
|
|
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
|
|
|
|
|
2010-05-17 21:19:05 +00:00
|
|
|
def install
|
2012-02-01 20:10:13 +00:00
|
|
|
ENV.x11
|
2012-02-09 07:06:50 +00:00
|
|
|
# fix for Leopard, potentially others with isspecial defined elswhere
|
|
|
|
inreplace 'objects/GRAFCET/boolequation.c', 'isspecial', 'char_isspecial'
|
2012-02-06 07:31:29 +00:00
|
|
|
system "./configure", "--enable-debug=no",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-05-17 21:19:05 +00:00
|
|
|
system "make install"
|
2010-07-26 15:41:23 +00:00
|
|
|
rm_rf share+"applications"
|
2010-05-17 21:19:05 +00:00
|
|
|
end
|
|
|
|
end
|
2012-05-01 17:28:21 +00:00
|
|
|
|
|
|
|
__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"
|