[89632] trunk/dports/math/tiemu3

and.damore at macports.org and.damore at macports.org
Sat Feb 4 15:45:51 PST 2012


Revision: 89632
          http://trac.macports.org/changeset/89632
Author:   and.damore at macports.org
Date:     2012-02-04 15:45:49 -0800 (Sat, 04 Feb 2012)
Log Message:
-----------
port tiemu3: fixing gtk deprecated error as per #30665, new patch file from ubuntu package, closing ticket

Modified Paths:
--------------
    trunk/dports/math/tiemu3/Portfile

Added Paths:
-----------
    trunk/dports/math/tiemu3/files/patch-gtk_disable_deprecated.diff

Modified: trunk/dports/math/tiemu3/Portfile
===================================================================
--- trunk/dports/math/tiemu3/Portfile	2012-02-04 23:35:44 UTC (rev 89631)
+++ trunk/dports/math/tiemu3/Portfile	2012-02-04 23:45:49 UTC (rev 89632)
@@ -4,6 +4,7 @@
 
 name                tiemu3
 version             3.02
+license             GPL-2
 categories          math
 maintainers         and.damore
 description         TI89 /Titanium/92/92+/V200 multi-platform emulator
@@ -49,7 +50,8 @@
                     patch-dbg_wnds.diff \
                     patch-keynames.diff \
                     patch-screen.diff \
-                    patch-src_gui_device_c.diff
+                    patch-src_gui_device_c.diff \
+                    patch-gtk_disable_deprecated.diff
 
 
 configure.args-append       --without-kde --disable-debugger --disable-gdb \

Added: trunk/dports/math/tiemu3/files/patch-gtk_disable_deprecated.diff
===================================================================
--- trunk/dports/math/tiemu3/files/patch-gtk_disable_deprecated.diff	                        (rev 0)
+++ trunk/dports/math/tiemu3/files/patch-gtk_disable_deprecated.diff	2012-02-04 23:45:49 UTC (rev 89632)
@@ -0,0 +1,57 @@
+--- src/gui/calc/calc.c	2011-04-21 19:30:02.000000000 +0200
++++ src/gui/calc/calc.c	2011-04-21 19:47:19.998760979 +0200
+@@ -586,7 +586,7 @@
+ 
+     // Install LCD refresh: 100 FPS (10 ms)
+     tid = g_timeout_add((params.lcd_rate == -1) ? 50 : params.lcd_rate, 
+-		(GtkFunction)hid_refresh, NULL);
++		(GSourceFunc)hid_refresh, NULL);
+ 
+ 	explicit_destroy = 0;
+ 	gtk_widget_show(main_wnd);	// show wnd here
+@@ -640,7 +640,7 @@
+ 	g_source_remove(tid);
+ 
+ 	tid = g_timeout_add((params.lcd_rate == -1) ? 50 : params.lcd_rate, 
+-		(GtkFunction)hid_refresh, NULL);
++		(GSourceFunc)hid_refresh, NULL);
+ }
+ 
+ int hid_switch_with_skin(void)
+--- src/gui/calc/popup.c	2011-04-21 19:26:31.000000000 +0200
++++ src/gui/calc/popup.c	2011-04-21 19:47:19.998760979 +0200
+@@ -31,7 +31,9 @@
+    This means GtkTooltipsData is now deprecated. */
+ #undef GTK_DISABLE_DEPRECATED
+ 
++#undef GTK_DISABLE_DEPRECATED
+ #include <gtk/gtk.h>
++#define GTK_DISABLE_DEPRECATED
+ #include <glade/glade.h>
+ #include <stdlib.h>
+ #include <string.h>
+--- src/gui/debugger/dbg_romcall.c	2011-04-21 19:26:31.000000000 +0200
++++ src/gui/debugger/dbg_romcall.c	2011-04-21 19:48:04.506429940 +0200
+@@ -29,7 +29,9 @@
+ #  include <config.h>
+ #endif
+ 
+-#include <gtk/gtk.h>
++#undef GTK_DISABLE_DEPRECATED
++ #include <gtk/gtk.h>
++#define GTK_DISABLE_DEPRECATED
+ #include <glade/glade.h>
+ #include <string.h>
+ 
+--- src/gui/filesel.c	2011-04-21 19:26:31.000000000 +0200
++++ src/gui/filesel.c	2011-04-21 19:47:19.998760979 +0200
+@@ -41,7 +41,9 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#undef GTK_DISABLE_DEPRECATED
+ #include <gtk/gtk.h>
++#define GTK_DISABLE_DEPRECATED
+ #include <string.h>
+ 
+ #ifdef __WIN32__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120204/12b9717c/attachment.html>


More information about the macports-changes mailing list