[tiemu] 02/03: Latest Debian version.

Andreas B. Mundt andi at alioth.debian.org
Thu Aug 15 19:44:52 UTC 2013


This is an automated email from the git hooks/post-receive script.

andi pushed a commit to branch master
in repository tiemu.

commit 27a9322ebde1fdf298b174f34c9ba257a3988bc9
Author: Andreas B. Mundt <andi at debian.org>
Date:   Thu Aug 15 19:29:45 2013 +0200

    Latest Debian version.
---
 debian/changelog                                   |  247 +++++++++++
 debian/compat                                      |    1 +
 debian/control                                     |   34 ++
 debian/copyright                                   |  121 ++++++
 debian/patches/00list                              |    6 +
 debian/patches/01_gtk_disable_deprecated.dpatch    |   72 ++++
 debian/patches/02_tiemu3_dock_fixes.dpatch         |   65 +++
 debian/patches/03_memset_include_cstring.dpatch    |   18 +
 .../patches/04_remove_deprecated_gtk_calls.dpatch  |  432 ++++++++++++++++++++
 debian/patches/05_remove_vlc_cable.dpatch          |   32 ++
 debian/patches/06_drop_GtkNotebookPage.dpatch      |   19 +
 debian/rules                                       |   89 ++++
 debian/tiemu.dirs                                  |    1 +
 debian/tiemu.docs                                  |    5 +
 debian/tiemu.menu                                  |    2 +
 15 files changed, 1144 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..cdd3830
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,247 @@
+tiemu (3.02-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "FTBFS: gui/calc/calc.c:589:4: error: 'GtkFunction' undeclared
+    (first use in this function)": use updated patch
+    01_gtk_disable_deprecated.dpatch from Ubuntu / Andreas Moog
+    (Closes: #621997, LP: #756074)
+  * The package still FTBFS, so let's apply the remaining Ubuntu patches:
+    - 05_remove_vlc_cable.dpatch (Scott Kitterman):
+      Fix FTBFS with newer libs - Cherry pick from upstream svn
+    - 06_drop_GtkNotebookPage.dpatch (Scott Kitterman):
+      Replace deprecated function with gpointer to FTBFS.
+
+ -- gregor herrmann <gregoa at debian.org>  Thu, 20 Oct 2011 19:13:28 +0200
+
+tiemu (3.02-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/patches/04_remove_deprecated_gtk_calls:
+    - Replace deprecated GTK macro with related function, patch from
+      Scott Howard (Closes: #577379, #574745).
+
+ -- Luca Falavigna <dktrkranz at debian.org>  Sat, 08 May 2010 13:53:02 +0200
+
+tiemu (3.02-1) unstable; urgency=low
+
+  * New upstream release.
+  * New maintainer. (Closes: #362159)
+  * Changed dependency from iceape to iceweasel.
+  * Conforms with latest Standards Version 3.8.3.
+
+ -- Krzysztof Burghardt <krzysztof at burghardt.pl>  Sun, 27 Sep 2009 12:15:27 +0200
+
+tiemu (2.00-4) unstable; urgency=low
+
+  * QA upload
+  * Use dpatch for patch management
+  * src/gui/filesel.c, src/gui/calc/popup.c: undefine GTK_DISABLE_DEPRECATED
+    before including gtk/gtk.h. Patch taken from Ubuntu. (Closes: #456848)
+  * debian/rules target clean: do not ignore errors of "make clean"
+  * menu entry: put in section Applications/Science/Mathematics instead of
+    depreciated Apps/Math.
+
+ -- Ralf Treinen <treinen at debian.org>  Wed, 16 Jan 2008 21:35:36 +0100
+
+tiemu (2.00-3) unstable; urgency=low
+
+  * QA upload.
+  * Replace dependency on transitional mozilla-browser package
+    with iceape-browser. (Closes: #406802)
+  * Conforms with latest Standards Version 3.7.2
+
+ -- Michael Ablassmeier <abi at debian.org>  Mon, 22 Jan 2007 10:32:07 +0100
+
+tiemu (2.00-2) unstable; urgency=low
+
+  * Orphaning this package.
+  * debian/control:
+    + Maintainer: set to QA.
+
+ -- Julien BLACHE <jblache at debian.org>  Wed, 12 Apr 2006 17:06:38 +0200
+
+tiemu (2.00-1) unstable; urgency=low
+
+  * New upstream release.
+    + Updated Build-Depends.
+  * debian/control:
+    + Bumped Standards-Version to 3.6.2 (no changes).
+
+ -- Julien BLACHE <jblache at debian.org>  Sun, 28 Aug 2005 23:38:56 +0200
+
+tiemu (1.99+svn1460-1) unstable; urgency=low
+
+  * New snapshot.
+  * debian/control:
+    + Updated build-depends.
+
+ -- Julien BLACHE <jblache at debian.org>  Thu,  2 Jun 2005 16:50:15 +0200
+
+tiemu (1.99+svn1148-2) unstable; urgency=low
+
+  * src/misc/printl.c:
+    + Usual va_list fixes. Boring. Depressing.
+  * src/gui/filesel.c:
+    + Silly typo fix.
+
+ -- Julien BLACHE <jblache at debian.org>  Tue,  3 May 2005 21:13:14 +0200
+
+tiemu (1.99+svn1148-1) unstable; urgency=low
+
+  * New upstream snapshot.
+
+ -- Julien BLACHE <jblache at debian.org>  Wed, 20 Apr 2005 11:33:10 +0200
+
+tiemu (1.99+svn1050-1) unstable; urgency=low
+
+  * TiEmu II beta release, works better than previous 1.65 (closes: #301991).
+  * debian/control:
+    + Moved from contrib to main as it now ships with a FREE ROM (PedRom, GPL),
+      so it doesn't depend on the TI ROMs anymore.
+
+ -- Julien BLACHE <jblache at debian.org>  Thu,  7 Apr 2005 12:16:51 +0200
+
+tiemu (1.65-6) unstable; urgency=low
+
+  * Rebuilt against newest libti*, bumped B-D.
+
+ -- Julien BLACHE <jblache at debian.org>  Wed, 27 Oct 2004 14:15:44 +0200
+
+tiemu (1.65-5) unstable; urgency=low
+
+  * debian/control:
+    + Build-depends on newer libti*-dev, as the ti*-config scripts got removed.
+    + Removed the xlibs-dev build-dependency as it's pulled in by GTK+.
+    + Bumped Standards-Version to 3.6.1.
+  * debian/compat, debian/rules, debian/control:
+    + Switched to DH_COMPAT=4
+  * Fixed configure to use pkg-config instead of the ti*-config scripts.
+
+ -- Julien BLACHE <jblache at debian.org>  Tue, 26 Oct 2004 14:01:56 +0200
+
+tiemu (1.65-4) unstable; urgency=low
+
+  * Added AM_MAINTAINER_MODE to configure.ac to prevent regeneration of the
+    whole build system...
+  * Changed -mpentium to -mcpu=pentium on x86.
+  * Bumped Standards-Version to 3.5.9.
+
+ -- Julien BLACHE <jblache at debian.org>  Thu, 10 Apr 2003 21:14:37 +0200
+
+tiemu (1.65-3) unstable; urgency=low
+
+  * Rebuilt against newest libti*.
+
+ -- Julien BLACHE <jblache at debian.org>  Mon, 17 Mar 2003 22:07:20 +0100
+
+tiemu (1.65-2) unstable; urgency=low
+
+  * Fix build on non-i386 architectures, again.
+
+ -- Julien BLACHE <jblache at debian.org>  Sun, 20 Oct 2002 21:09:29 +0200
+
+tiemu (1.65-1) unstable; urgency=low
+
+  * New upstream release.
+  * Fixes FTBFS with newer libti*.
+  * Use the symlink method with autotools-dev.
+
+ -- Julien BLACHE <jblache at debian.org>  Sun, 20 Oct 2002 13:34:16 +0200
+
+tiemu (1.64-2) unstable; urgency=low
+
+  * Fixes for non-i386 arches, build & runtime (closes: Bug#156053).
+
+ -- Julien BLACHE <jblache at debian.org>  Sat, 10 Aug 2002 11:07:51 +0200
+
+tiemu (1.64-1) unstable; urgency=low
+
+  * Package renamed (gtktiemu -> tiemu).
+  * New upstream release.
+  * Uses new libti*.
+
+ -- Julien BLACHE <jblache at debian.org>  Sat,  3 Aug 2002 11:00:32 +0200
+
+gtktiemu (1.53-6) unstable; urgency=high
+
+  * Needs to be rebuilt on all architectures to get the dependencies right.
+
+ -- Julien BLACHE <jblache at debian.org>  Thu, 18 Apr 2002 12:33:12 +0200
+
+gtktiemu (1.53-5) unstable; urgency=medium
+
+  * Built against libusb-0.1-4.
+
+ -- Julien BLACHE <jblache at debian.org>  Wed, 13 Mar 2002 10:58:01 +0100
+
+gtktiemu (1.53-4) unstable; urgency=low
+
+  * Patched and rebuilt against libticables/libticalcs v3.
+      rcfile.c (TTY1 => SP2_NAME)
+      rcfile.h (remove DLLEXPORT)
+      gtk_refresh.c (use new rate mechanism)
+      error.c (remove DLLEXPORT) 
+
+ -- Julien BLACHE <jblache at debian.org>  Sat, 16 Feb 2002 15:48:04 +0100
+
+gtktiemu (1.53-3) unstable; urgency=medium
+
+  * Fixed typo in description (closes: Bug#124711).
+  * Fixed endianness problem in src/skn_loader.c
+  * Thus, added AC_C_BIGENDIAN to configure.ac
+  * Added AC_CHECK_TYPES(uint32_t) and AC_CHECK_HEADERS(stdint.h) to
+    configure.ac
+  * Fixed per-user configuration directory permissions in
+    (was 0666, 0755 now)
+  * Additionally, replaced "glob_inf" with "options" in sdlspecific.c to
+    be sure that the background will be drawn if the config file
+    says so (didn't work on my PPC).
+  * Patch approved by upstream.
+
+ -- Julien BLACHE <jblache at debian.org>  Sat, 26 Jan 2002 15:53:52 +0100
+
+gtktiemu (1.53-2) unstable; urgency=low
+
+  * Added missing Build-Depends on libncurses5-dev (closes: Bug#121991).
+
+ -- Julien BLACHE <jblache at debian.org>  Sat,  1 Dec 2001 22:32:54 +0100
+
+gtktiemu (1.53-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Julien BLACHE <jblache at debian.org>  Sat, 24 Nov 2001 16:37:03 +0100
+
+gtktiemu (1.42-4) unstable; urgency=low
+
+  * Linked against the new SDL.
+  * Modified configure and src/Makefile.am accordingly.
+
+ -- Julien BLACHE <jblache at debian.org>  Fri, 19 Oct 2001 13:40:01 +0200
+
+gtktiemu (1.42-3) unstable; urgency=low
+
+  * Linked againts libticables2.
+
+ -- Julien BLACHE <jblache at debian.org>  Mon, 15 Oct 2001 19:04:38 +0200
+
+gtktiemu (1.42-2) unstable; urgency=medium
+
+  * Fixed description (closes: Bug#102936). 
+
+ -- Julien BLACHE <jblache at debian.org>  Sun,  8 Jul 2001 11:33:35 +0200
+
+gtktiemu (1.42-1) unstable; urgency=low
+
+  * First public release.
+  * First upload (closes: Bug#98880).
+
+ -- Julien BLACHE <jblache at debian.org>  Sun, 24 Jun 2001 16:21:33 +0200
+
+gtktiemu (1.03-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Julien BLACHE <jblache at debian.org>  Thu, 19 Apr 2001 15:36:18 +0200
+
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..78629d3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,34 @@
+Source: tiemu
+Section: math
+Priority: optional
+Maintainer: Krzysztof Burghardt <krzysztof at burghardt.pl>
+Build-Depends: debhelper (>= 5), libticables-dev (>= 1.2.0), libticalcs-dev (>= 1.1.0), libtifiles-dev (>= 1.1.0), libticonv-dev (>= 1.1.0), libgtk2.0-dev, libglade2-dev, zlib1g-dev, gettext, groff-base, libdbus-glib-1-dev, libsdl1.2-dev (>= 1.2.0), libncurses5-dev, bison, texinfo, flex, autotools-dev, dpatch
+Standards-Version: 3.8.3
+Homepage: http://lpg.ticalc.org/prj_tiemu/
+
+Package: tiemu
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, iceweasel | www-browser
+Replaces: gtktiemu
+Conflicts: gtktiemu, tiemu-gdb
+Suggests: tiemu-skinedit
+Description: Texas Instruments calculators emulator (without GDB)
+ TiEmu emulates Texas Instruments calculators TI-89/92/92+/V200PLT.
+ .
+ It is based on XTiger, the original TI emulator for Linux, which
+ uses the 68k emulation core from UAE (The Ultimate Amiga Emulator).
+ .
+ You need to either dump the ROM of your calculator (you can do so
+ with TiLP), or get a FLASH upgrade from Texas Instrument (see the software
+ section concerning your calculator, then download the archive and
+ extract the file) to use this emulator. There are *no* TI ROMs provided
+ in this package, as they are copyrighted by Texas Instruments, Inc.
+ .
+ However, a free (as in speech) ROM is now provided with TiEmu, namely
+ PedRom. Try it out!
+ .
+ This version includes a VTI-style assembly debugger.
+ .
+ Please note it exists another version (tiemu-gdb) not provided on Debian
+ itself which includes a GDB-style assembly debugger for use with TIGCC
+ and/or KTIGCC.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8562917
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,121 @@
+This package was debianized by Julien BLACHE <jblache at debian.org> on
+Mon, 14 Feb 2000 14:55:57 +0100.
+
+It was downloaded from <http://lpg.ticalc.org/prj_tiemu/>
+
+Upstream Authors:
+
+    Romain Liévin <roms at tilp.info>
+    Julien Blache <jb at jblache.org>
+    Kevin Kofler <kevin.kofler at chello.at>
+    Christian Walther <cwalther at gmx.ch>
+    Jaime Fernando Meza Meza <jaimezacalcs at yahoo.com>
+
+Copyright:
+
+    Copyright © 1991 the Massachusetts Institute of Technology
+    Copyright © 1995-1996 Ed Hanway
+    Copyright © 1995-1997, 2000-2006 Ulrich Drepper
+    Copyright © 1995-2001 Bernd Schmidt
+    Copyright © 1995-2008 Bernd Schmidt, and others
+    Copyright © 1996 Herman ten Brugge
+    Copyright © 1996-1998 David Ellsworth
+    Copyright © 1999 Paul Kuliniewicz
+    Copyright © 1999-2007 the TiEmu Team
+    Copyright © 1999-2009 Romain Liévin
+    Copyright © 2000-2001 Thomas Corvazier
+    Copyright © 2002-2004 Sebastian Reichelt
+    Copyright © 2003-2005 Jaroslaw Staniek
+    Copyright © 2003-2005 Julien Blache
+    Copyright © 2003-2007 Kevin Kofler
+    Copyright © 2004 Scott James Remnant
+    Copyright © 2005 Christian Ehrlicher
+    Copyright © 2005 Christian Walther
+    Copyright © 2006 Asger Ottar Alstrup
+    Copyright © 2006 Ralf Habacker
+    Copyright © 2006-2007 Tyler Cassidy
+    Copyright © 2007 Peter Fernandes
+    Copyright © Edwin van Rijkom
+    Copyright © Nicolas Cannasse
+
+License:
+
+    This package is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+TiEmu uses software from various parts:
+
+ - XTiger:
+
+    Original author of (X)tiger: Jonas Minnberg
+    Homepage for Tiger: http://www.nada.kth.se/~md94-jmi/tiger/
+    License: GPL
+
+ - UAE:
+
+    UAE Amiga Emulator
+    Copyright © 1995-2008 Bernd Schmidt, and others.
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+ - PedroM:
+
+    PedroM      - Copyright © 2003, 2004, 2005 Patrick Pelissier
+    PreOS       - Copyright © 2002, 2003, 2004, 2005 Patrick Pelissier
+    Side        - Copyright © 2002, 2005 Clement Vasseur
+    MD5         - Copyright © 1999, 2000, 2002 Aladdin Enterprises
+    ExtGraph    - Copyright © 2001-2002 Thomas Nussbaumer
+    TIB Install - Copyright © 2000-2004 Julien Muchembled
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+
+    The precompiled TIB is PedRom re-built by Kevin in order to remove
+    non-free parts:
+
+    This is a version of PedroM 0.81 modified for compatibility with ld-tigcc.
+    I also deleted the non-Free files (the builtin ttunpack, the builtin stdlib
+    archive pack and wti.h (not used by PedroM anymore anyway) have been removed),
+    as well as several other junk not needed to build PedroM and built PedroM
+    using the fully GPL option. See pedrom-081-ld-tigcc.diff for my changes.
+
+    Fully-GPL version by Kevin Kofler:
+        <www.tigen.org/kevin.kofler/ti89prog/pedrom-ld-tigcc.zip>
+
+On Debian systems, a verbatim uncompressed copy of the GPL-2 is
+available as /usr/share/common-licenses/GPL-2.
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..e07829f
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1,6 @@
+01_gtk_disable_deprecated
+02_tiemu3_dock_fixes
+03_memset_include_cstring
+04_remove_deprecated_gtk_calls
+05_remove_vlc_cable
+06_drop_GtkNotebookPage
diff --git a/debian/patches/01_gtk_disable_deprecated.dpatch b/debian/patches/01_gtk_disable_deprecated.dpatch
new file mode 100644
index 0000000..9b0ac40
--- /dev/null
+++ b/debian/patches/01_gtk_disable_deprecated.dpatch
@@ -0,0 +1,72 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## Description: add some description
+## Origin/Author: add some origin or author
+## Bug: bug URL
+## 01_gtk_disable_deprecated.dpatch by Ralf Treinen <treinen at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: undefine GTK_DISABLE_DEPRECATED before including gtk/gtk.h.
+## DP: patch taken from Ubuntu.
+
+ at DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu~/src/gui/calc/calc.c tiemu/src/gui/calc/calc.c
+--- tiemu~/src/gui/calc/calc.c	2011-04-21 19:30:02.000000000 +0200
++++ tiemu/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)
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu~/src/gui/calc/popup.c tiemu/src/gui/calc/popup.c
+--- tiemu~/src/gui/calc/popup.c	2011-04-21 19:26:31.000000000 +0200
++++ tiemu/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>
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu~/src/gui/debugger/dbg_romcall.c tiemu/src/gui/debugger/dbg_romcall.c
+--- tiemu~/src/gui/debugger/dbg_romcall.c	2011-04-21 19:26:31.000000000 +0200
++++ tiemu/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>
+ 
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu~/src/gui/filesel.c tiemu/src/gui/filesel.c
+--- tiemu~/src/gui/filesel.c	2011-04-21 19:26:31.000000000 +0200
++++ tiemu/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__
diff --git a/debian/patches/02_tiemu3_dock_fixes.dpatch b/debian/patches/02_tiemu3_dock_fixes.dpatch
new file mode 100644
index 0000000..ae32251
--- /dev/null
+++ b/debian/patches/02_tiemu3_dock_fixes.dpatch
@@ -0,0 +1,65 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_tiemu3_dock_fixes.dpatch by Krzysztof Burghardt <krzysztof at burghardt.pl>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fixes problems with debugging in dock mode and dock window
+## DP: enabling/disabling; patch taken from upstream.
+
+ at DPATCH@
+diff -urNad tiemu-3.02~/ChangeLog tiemu-3.02/ChangeLog
+--- tiemu-3.02~/ChangeLog	2007-12-31 00:15:51.000000000 +0100
++++ tiemu-3.02/ChangeLog	2009-08-09 23:19:36.104542592 +0200
+@@ -1,5 +1,9 @@
+ SubVersion: $Id: ChangeLog 2754 2007-12-30 23:15:51Z kevinkofler $
+ 
++- 12/02/2008, version 3.03:
++	- [kevin] $2765: fixed crash when debugging TIGCC program with GDB with low-level debugger in dock mode
++	- [kevin] $2766: fixed dock window enabling/disabling not to keep the engine running across the restart
++
+ - 16/09/2007, version 3.02:
+ 	- [roms]  $2646: screenshots can be copied into the clipboard
+ 	- [roms]  $2649: use fixed fonts for release and manpage dboxes
+diff -urNad tiemu-3.02~/src/gui/debugger/dbg_all.c tiemu-3.02/src/gui/debugger/dbg_all.c
+--- tiemu-3.02~/src/gui/debugger/dbg_all.c	2007-12-14 22:03:03.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_all.c	2009-08-09 23:19:36.104542592 +0200
+@@ -7,7 +7,7 @@
+  *  Copyright (c) 2001-2003, Romain Lievin
+  *  Copyright (c) 2003, Julien Blache
+  *  Copyright (c) 2004, Romain Li�vin
+- *  Copyright (c) 2005-2007, Romain Li�vin, Kevin Kofler
++ *  Copyright (c) 2005-2008, Romain Li�vin, Kevin Kofler
+  *
+  *  This program is free software; you can redistribute it and/or modify
+  *  it under the terms of the GNU General Public License as published by
+@@ -164,7 +164,7 @@
+ 
+ 			ti68k_bkpt_get_pgmentry_offset(id, &handle, &offset);
+ 			ti68k_bkpt_del_pgmentry(handle);
+-			if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
++			if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.bkpts))
+ 				dbgbkpts_refresh_window();
+ 
+ 			delete_command(NULL, 0);
+diff -urNad tiemu-3.02~/src/gui/debugger/dbg_wnds.c tiemu-3.02/src/gui/debugger/dbg_wnds.c
+--- tiemu-3.02~/src/gui/debugger/dbg_wnds.c	2007-12-15 23:29:44.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_wnds.c	2009-08-09 23:19:36.100541655 +0200
+@@ -7,7 +7,7 @@
+  *  Copyright (c) 2001-2003, Romain Lievin
+  *  Copyright (c) 2003, Julien Blache
+  *  Copyright (c) 2004, Romain Li�vin
+- *  Copyright (c) 2005-2007, Romain Li�vin, Kevin Kofler
++ *  Copyright (c) 2005-2008, Romain Li�vin, Kevin Kofler
+  *
+  *  This program is free software; you can redistribute it and/or modify
+  *  it under the terms of the GNU General Public License as published by
+@@ -265,6 +265,10 @@
+ 	engine_start();
+ #endif
+ 	gtk_debugger_close();
++	// Stop the engine before calling gtk_main_quit.
++	// Otherwise, it will keep running even when it is supposed to have
++	// been stopped by the debugger.
++	engine_stop();
+ 	if(options3.dbg_dock)
+ 		gtk_widget_destroy(dbgw.dock);
+ 
diff --git a/debian/patches/03_memset_include_cstring.dpatch b/debian/patches/03_memset_include_cstring.dpatch
new file mode 100644
index 0000000..d8f1547
--- /dev/null
+++ b/debian/patches/03_memset_include_cstring.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_memset_include_cstring.dpatch by Krzysztof Burghardt <krzysztof at burghardt.pl>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fixes error: ‘memset’ is not a member of ‘std’.
+
+ at DPATCH@
+diff -urNad tiemu-3.02~/src/ipc/dcop/dcop.cpp tiemu-3.02/src/ipc/dcop/dcop.cpp
+--- tiemu-3.02~/src/ipc/dcop/dcop.cpp	2007-12-14 22:28:08.000000000 +0100
++++ tiemu-3.02/src/ipc/dcop/dcop.cpp	2009-08-09 23:36:14.000528344 +0200
+@@ -18,6 +18,7 @@
+  */
+ 
+ #include <cstdlib>
++#include <cstring>
+ #include <glib.h>
+ #include <gtk/gtk.h>
+ #include <dcopobject.h>
diff --git a/debian/patches/04_remove_deprecated_gtk_calls.dpatch b/debian/patches/04_remove_deprecated_gtk_calls.dpatch
new file mode 100644
index 0000000..863d26b
--- /dev/null
+++ b/debian/patches/04_remove_deprecated_gtk_calls.dpatch
@@ -0,0 +1,432 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_remove_depricated_gtk_calls.dpatch by  <dktrkranz at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/calc/calc.c tiemu-3.02/src/gui/calc/calc.c
+--- tiemu-3.02~/src/gui/calc/calc.c	2007-12-16 16:29:16.000000000 +0100
++++ tiemu-3.02/src/gui/calc/calc.c	2010-05-08 13:42:37.071928317 +0200
+@@ -313,7 +313,7 @@
+ {
+     gdk_draw_pixmap(
+         widget->window,
+-		widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
++		widget->style->fg_gc[gtk_widget_get_state (widget)],
+ 		pixmap,
+ 		event->area.x, event->area.y,
+ 		event->area.x, event->area.y,
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/calc/screen.c tiemu-3.02/src/gui/calc/screen.c
+--- tiemu-3.02~/src/gui/calc/screen.c	2006-11-06 18:18:51.000000000 +0100
++++ tiemu-3.02/src/gui/calc/screen.c	2010-05-08 13:42:37.071928317 +0200
+@@ -187,7 +187,7 @@
+ 	skin_infos.image = gdk_pixbuf_scale_simple(skin_infos.raw, wr.wr.w, wr.wr.h, GDK_INTERP_NEAREST);
+ 
+ 	// and draw image into pixmap (next, into window on expose event)
+-    gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[GTK_WIDGET_STATE(main_wnd)],
++    gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[gtk_widget_get_state(main_wnd)],
+ 		  skin_infos.image, 0, 0, 0, 0, -1, -1, GDK_RGB_DITHER_NONE, 0, 0);
+ 	gdk_window_invalidate_rect(main_wnd->window, &wr.gr, FALSE);
+ }
+@@ -204,7 +204,7 @@
+ 		gdk_pixbuf_scale_simple(skin_infos.raw, sr.w, sr.h, GDK_INTERP_NEAREST);
+ 
+ 	// and draw
+-	gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[GTK_WIDGET_STATE(main_wnd)],
++	gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[gtk_widget_get_state(main_wnd)],
+ 		  skin_infos.image, ls.x, ls.y, lr.x, lr.y, lr.w, lr.h, GDK_RGB_DITHER_NONE, 0, 0);
+ 	gtk_widget_queue_draw_area(area, lr.x, lr.y, lr.w, lr.h);
+ }
+@@ -324,7 +324,7 @@
+ 			skin_infos.image = gdk_pixbuf_scale_simple(lcd, lr.w, lr.h, GDK_INTERP_NEAREST);
+ 
+ 			// and draw image into pixmap (next, into window on expose event)
+-			gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[GTK_WIDGET_STATE(main_wnd)],
++			gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[gtk_widget_get_state(main_wnd)],
+ 			 skin_infos.image, src.x, src.y, lr.x, lr.y, src.w, src.h,
+ 			  GDK_RGB_DITHER_NONE, 0, 0);
+ 			gtk_widget_queue_draw_area(area, lr.x, lr.y, src.w, src.h);
+@@ -332,7 +332,7 @@
+ 		else
+ 		{
+ 			// and draw image into pixmap (next, into window on expose event)
+-			gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[GTK_WIDGET_STATE(main_wnd)],
++			gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[gtk_widget_get_state(main_wnd)],
+ 			  lcd_mem, src.x, src.y, lr.x, lr.y, src.w, src.h,
+ 			  GDK_RGB_DITHER_NONE, 0, 0);
+ 			gtk_widget_queue_draw_area(area, lr.x, lr.y, src.w, src.h);
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_all.c tiemu-3.02/src/gui/debugger/dbg_all.c
+--- tiemu-3.02~/src/gui/debugger/dbg_all.c	2010-05-08 13:42:22.315925510 +0200
++++ tiemu-3.02/src/gui/debugger/dbg_all.c	2010-05-08 13:42:37.071928317 +0200
+@@ -81,21 +81,21 @@
+ 
+ void gtk_debugger_refresh(void)
+ {	
+-	if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.regs))
++	if(options3.dbg_dock || gtk_widget_get_visible(dbgw.regs))
+ 		dbgregs_refresh_window();
+-	if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.mem))
++	if(options3.dbg_dock || gtk_widget_get_visible(dbgw.mem))
+ 		dbgmem_refresh_window();
+-	if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.bkpts))
++	if(options3.dbg_dock || gtk_widget_get_visible(dbgw.bkpts))
+ 		dbgbkpts_refresh_window();
+-	if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.pclog))
++	if(options3.dbg_dock || gtk_widget_get_visible(dbgw.pclog))
+ 		dbgpclog_refresh_window();
+-	if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.code))
++	if(options3.dbg_dock || gtk_widget_get_visible(dbgw.code))
+ 		dbgcode_refresh_window();
+-    if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.stack))
++    if(options3.dbg_dock || gtk_widget_get_visible(dbgw.stack))
+ 		dbgstack_refresh_window();
+-	if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.heap))
++	if(options3.dbg_dock || gtk_widget_get_visible(dbgw.heap))
+ 		dbgheap_refresh_window();
+-	if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.iop))
++	if(options3.dbg_dock || gtk_widget_get_visible(dbgw.iop))
+ 		dbgiop_refresh_window();
+ }
+ 
+@@ -147,7 +147,7 @@
+ 	gtk_debugger_refresh();
+ 
+ 	// enable the debugger if GDB disabled it
+-	if (!options3.dbg_dock && !GTK_WIDGET_SENSITIVE(dbgw.regs))
++	if (!options3.dbg_dock && !gtk_widget_get_sensitive(dbgw.regs))
+ 		gtk_debugger_enable();
+ 
+ 	// handle automatic debugging requests
+@@ -164,7 +164,7 @@
+ 
+ 			ti68k_bkpt_get_pgmentry_offset(id, &handle, &offset);
+ 			ti68k_bkpt_del_pgmentry(handle);
+-			if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.bkpts))
++			if(options3.dbg_dock || gtk_widget_get_visible(dbgw.bkpts))
+ 				dbgbkpts_refresh_window();
+ 
+ 			delete_command(NULL, 0);
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_bkpts.c tiemu-3.02/src/gui/debugger/dbg_bkpts.c
+--- tiemu-3.02~/src/gui/debugger/dbg_bkpts.c	2007-12-14 22:03:03.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_bkpts.c	2010-05-08 13:42:37.075928108 +0200
+@@ -388,7 +388,7 @@
+ 		gtk_window_iconify(GTK_WINDOW(wnd));
+ #endif
+ 
+-	if(!GTK_WIDGET_VISIBLE(dbgw.bkpts) && !options3.bkpts.closed)
++	if(!gtk_widget_get_visible(dbgw.bkpts) && !options3.bkpts.closed)
+ 		gtk_widget_show(wnd);
+ 
+ 	return wnd;
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_code.c tiemu-3.02/src/gui/debugger/dbg_code.c
+--- tiemu-3.02~/src/gui/debugger/dbg_code.c	2007-12-31 00:14:15.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_code.c	2010-05-08 13:42:37.075928108 +0200
+@@ -1096,7 +1096,7 @@
+ 
+ int dbgcode_quit_enabled(void)
+ {
+-	return GTK_WIDGET_SENSITIVE(mi.m8);
++	return gtk_widget_get_sensitive(mi.m8);
+ }
+ 
+ static int close_debugger_wrapper(gpointer data)
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_dock.c tiemu-3.02/src/gui/debugger/dbg_dock.c
+--- tiemu-3.02~/src/gui/debugger/dbg_dock.c	2007-12-14 22:03:43.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_dock.c	2010-05-08 13:43:13.795927044 +0200
+@@ -151,22 +151,22 @@
+ 
+ void dbgdock_show_all(int all)
+ {
+-	if(!GTK_WIDGET_VISIBLE(dbgw.dock) && all)
++	if(!gtk_widget_get_visible(dbgw.dock) && all)
+         gtk_widget_show(dbgw.dock);
+ 
+-	if(GTK_WIDGET_VISIBLE(dbgw.iop))
++	if(gtk_widget_get_visible(dbgw.iop))
+         gtk_window_iconify(GTK_WINDOW(dbgw.iop));
+-	if(GTK_WIDGET_VISIBLE(dbgw.pclog))
++	if(gtk_widget_get_visible(dbgw.pclog))
+         gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
+ }
+ 
+ void dbgdock_hide_all(int all)
+ {
+-	if(GTK_WIDGET_VISIBLE(dbgw.dock) && all)
++	if(gtk_widget_get_visible(dbgw.dock) && all)
+         gtk_widget_hide(dbgw.dock);
+ 
+-    if(GTK_WIDGET_VISIBLE(dbgw.pclog))
++    if(gtk_widget_get_visible(dbgw.pclog))
+         gtk_widget_hide(dbgw.pclog);
+-	if(GTK_WIDGET_VISIBLE(dbgw.iop))
++	if(gtk_widget_get_visible(dbgw.iop))
+         gtk_widget_hide(dbgw.iop);
+-}
+\ No newline at end of file
++}
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_heap.c tiemu-3.02/src/gui/debugger/dbg_heap.c
+--- tiemu-3.02~/src/gui/debugger/dbg_heap.c	2007-12-15 18:50:47.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_heap.c	2010-05-08 13:42:37.079927630 +0200
+@@ -171,7 +171,7 @@
+ 		gtk_window_iconify(GTK_WINDOW(dbgw.heap));
+ #endif
+ 
+-	if(!GTK_WIDGET_VISIBLE(dbgw.heap) && !options3.heap.closed)
++	if(!gtk_widget_get_visible(dbgw.heap) && !options3.heap.closed)
+ 		gtk_widget_show(dbgw.heap);
+ 
+ 	return dbgw.heap;
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_iop.c tiemu-3.02/src/gui/debugger/dbg_iop.c
+--- tiemu-3.02~/src/gui/debugger/dbg_iop.c	2007-12-15 18:50:47.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_iop.c	2010-05-08 13:42:37.079927630 +0200
+@@ -455,7 +455,7 @@
+ 		gtk_window_iconify(GTK_WINDOW(dbgw.iop));
+ #endif
+     
+-	if(!GTK_WIDGET_VISIBLE(dbgw.iop) && !options3.iop.closed)
++	if(!gtk_widget_get_visible(dbgw.iop) && !options3.iop.closed)
+ 		gtk_widget_show(dbgw.iop);
+ 
+ 	return dbgw.iop;
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_mem.c tiemu-3.02/src/gui/debugger/dbg_mem.c
+--- tiemu-3.02~/src/gui/debugger/dbg_mem.c	2007-12-31 00:14:15.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_mem.c	2010-05-08 13:42:37.095933764 +0200
+@@ -435,7 +435,7 @@
+ 		gtk_window_iconify(GTK_WINDOW(dbgw.mem));
+ #endif
+ 
+-	if(!GTK_WIDGET_VISIBLE(dbgw.mem) && !options3.mem.closed)
++	if(!gtk_widget_get_visible(dbgw.mem) && !options3.mem.closed)
+ 		gtk_widget_show(dbgw.mem);
+ 
+     return dbgw.mem;
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_pclog.c tiemu-3.02/src/gui/debugger/dbg_pclog.c
+--- tiemu-3.02~/src/gui/debugger/dbg_pclog.c	2007-12-15 18:50:47.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_pclog.c	2010-05-08 13:42:37.111918589 +0200
+@@ -163,7 +163,7 @@
+ 		gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
+ #endif
+ 
+-	if(!GTK_WIDGET_VISIBLE(dbgw.pclog) && !options3.pclog.closed)
++	if(!gtk_widget_get_visible(dbgw.pclog) && !options3.pclog.closed)
+ 		gtk_widget_show(dbgw.pclog);
+ 
+ 	return dbgw.pclog;
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_regs.c tiemu-3.02/src/gui/debugger/dbg_regs.c
+--- tiemu-3.02~/src/gui/debugger/dbg_regs.c	2007-12-21 20:57:24.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_regs.c	2010-05-08 13:42:37.111918589 +0200
+@@ -302,7 +302,7 @@
+ 		gtk_window_iconify(GTK_WINDOW(dbgw.regs));
+ #endif
+ 
+-	if(!GTK_WIDGET_VISIBLE(dbgw.regs) && !options3.regs.closed)
++	if(!gtk_widget_get_visible(dbgw.regs) && !options3.regs.closed)
+ 		gtk_widget_show(dbgw.regs);
+ 
+ 	return dbgw.regs;
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_stack.c tiemu-3.02/src/gui/debugger/dbg_stack.c
+--- tiemu-3.02~/src/gui/debugger/dbg_stack.c	2007-12-15 18:50:47.000000000 +0100
++++ tiemu-3.02/src/gui/debugger/dbg_stack.c	2010-05-08 13:42:37.111918589 +0200
+@@ -197,7 +197,7 @@
+ 		gtk_window_iconify(GTK_WINDOW(dbgw.stack));
+ #endif
+ 
+-	if(!GTK_WIDGET_VISIBLE(dbgw.stack) && !options3.stack.closed)
++	if(!gtk_widget_get_visible(dbgw.stack) && !options3.stack.closed)
+ 		gtk_widget_show(dbgw.stack);
+ 
+ 	return dbgw.stack;
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_wnds.c tiemu-3.02/src/gui/debugger/dbg_wnds.c
+--- tiemu-3.02~/src/gui/debugger/dbg_wnds.c	2010-05-08 13:42:22.315925510 +0200
++++ tiemu-3.02/src/gui/debugger/dbg_wnds.c	2010-05-08 13:43:34.895905709 +0200
+@@ -74,21 +74,21 @@
+ 	if(options3.dbg_dock)
+ 		return;
+ 
+-    if(GTK_WIDGET_VISIBLE(dbgw.regs))
++    if(gtk_widget_get_visible(dbgw.regs))
+         gtk_window_iconify(GTK_WINDOW(dbgw.regs));
+-    if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
++    if(gtk_widget_get_visible(dbgw.bkpts))
+         gtk_window_iconify(GTK_WINDOW(dbgw.bkpts));
+-    if(GTK_WIDGET_VISIBLE(dbgw.mem))
++    if(gtk_widget_get_visible(dbgw.mem))
+         gtk_window_iconify(GTK_WINDOW(dbgw.mem));
+-    if(GTK_WIDGET_VISIBLE(dbgw.pclog))
++    if(gtk_widget_get_visible(dbgw.pclog))
+         gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
+-    if(GTK_WIDGET_VISIBLE(dbgw.code) & all)
++    if(gtk_widget_get_visible(dbgw.code) & all)
+         gtk_window_iconify(GTK_WINDOW(dbgw.code));
+-    if(GTK_WIDGET_VISIBLE(dbgw.stack))
++    if(gtk_widget_get_visible(dbgw.stack))
+         gtk_window_iconify(GTK_WINDOW(dbgw.stack));
+-	if(GTK_WIDGET_VISIBLE(dbgw.heap))
++	if(gtk_widget_get_visible(dbgw.heap))
+         gtk_window_iconify(GTK_WINDOW(dbgw.heap));
+-	if(GTK_WIDGET_VISIBLE(dbgw.iop))
++	if(gtk_widget_get_visible(dbgw.iop))
+         gtk_window_iconify(GTK_WINDOW(dbgw.iop));
+ }
+ 
+@@ -98,21 +98,21 @@
+ 	if(options3.dbg_dock)
+ 		return;
+ 
+-    if(GTK_WIDGET_VISIBLE(dbgw.regs))
++    if(gtk_widget_get_visible(dbgw.regs))
+         gtk_window_deiconify(GTK_WINDOW(dbgw.regs));
+-    if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
++    if(gtk_widget_get_visible(dbgw.bkpts))
+         gtk_window_deiconify(GTK_WINDOW(dbgw.bkpts));
+-    if(GTK_WIDGET_VISIBLE(dbgw.mem))
++    if(gtk_widget_get_visible(dbgw.mem))
+         gtk_window_deiconify(GTK_WINDOW(dbgw.mem));
+-    if(GTK_WIDGET_VISIBLE(dbgw.pclog))
++    if(gtk_widget_get_visible(dbgw.pclog))
+         gtk_window_deiconify(GTK_WINDOW(dbgw.pclog));
+-    if(GTK_WIDGET_VISIBLE(dbgw.code) & all)
++    if(gtk_widget_get_visible(dbgw.code) & all)
+         gtk_window_deiconify(GTK_WINDOW(dbgw.code));
+-    if(GTK_WIDGET_VISIBLE(dbgw.stack))
++    if(gtk_widget_get_visible(dbgw.stack))
+         gtk_window_deiconify(GTK_WINDOW(dbgw.stack));
+-	if(GTK_WIDGET_VISIBLE(dbgw.heap))
++	if(gtk_widget_get_visible(dbgw.heap))
+         gtk_window_deiconify(GTK_WINDOW(dbgw.heap));
+-	if(GTK_WIDGET_VISIBLE(dbgw.iop))
++	if(gtk_widget_get_visible(dbgw.iop))
+         gtk_window_deiconify(GTK_WINDOW(dbgw.iop));
+ }
+ 
+@@ -122,21 +122,21 @@
+     if(options3.dbg_dock)
+ 		return;
+ 
+-    if(!GTK_WIDGET_VISIBLE(dbgw.regs))
++    if(!gtk_widget_get_visible(dbgw.regs))
+         gtk_widget_show(dbgw.regs);
+-    if(!GTK_WIDGET_VISIBLE(dbgw.bkpts))
++    if(!gtk_widget_get_visible(dbgw.bkpts))
+         gtk_widget_show(dbgw.bkpts);
+-    if(!GTK_WIDGET_VISIBLE(dbgw.mem))
++    if(!gtk_widget_get_visible(dbgw.mem))
+         gtk_widget_show(dbgw.mem);
+-    if(!GTK_WIDGET_VISIBLE(dbgw.pclog))
++    if(!gtk_widget_get_visible(dbgw.pclog))
+         gtk_widget_show(dbgw.pclog);
+-    if(!GTK_WIDGET_VISIBLE(dbgw.code) && all)
++    if(!gtk_widget_get_visible(dbgw.code) && all)
+         gtk_widget_show(dbgw.code);
+-    if(!GTK_WIDGET_VISIBLE(dbgw.stack))
++    if(!gtk_widget_get_visible(dbgw.stack))
+         gtk_widget_show(dbgw.stack);
+-	if(!GTK_WIDGET_VISIBLE(dbgw.heap))
++	if(!gtk_widget_get_visible(dbgw.heap))
+         gtk_widget_show(dbgw.heap);
+-	if(!GTK_WIDGET_VISIBLE(dbgw.iop))
++	if(!gtk_widget_get_visible(dbgw.iop))
+         gtk_widget_show(dbgw.iop);
+ }
+ 
+@@ -146,21 +146,21 @@
+     if(options3.dbg_dock)
+ 		return;
+ 
+-    if(GTK_WIDGET_VISIBLE(dbgw.regs))
++    if(gtk_widget_get_visible(dbgw.regs))
+         gtk_widget_hide(dbgw.regs);
+-    if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
++    if(gtk_widget_get_visible(dbgw.bkpts))
+         gtk_widget_hide(dbgw.bkpts);
+-    if(GTK_WIDGET_VISIBLE(dbgw.mem))
++    if(gtk_widget_get_visible(dbgw.mem))
+         gtk_widget_hide(dbgw.mem);
+-    if(GTK_WIDGET_VISIBLE(dbgw.pclog))
++    if(gtk_widget_get_visible(dbgw.pclog))
+         gtk_widget_hide(dbgw.pclog);
+-    if(GTK_WIDGET_VISIBLE(dbgw.code) && all)
++    if(gtk_widget_get_visible(dbgw.code) && all)
+         gtk_widget_hide(dbgw.code);
+-    if(GTK_WIDGET_VISIBLE(dbgw.stack))
++    if(gtk_widget_get_visible(dbgw.stack))
+         gtk_widget_hide(dbgw.stack);
+-	if(GTK_WIDGET_VISIBLE(dbgw.heap))
++	if(gtk_widget_get_visible(dbgw.heap))
+         gtk_widget_hide(dbgw.heap);
+-	if(GTK_WIDGET_VISIBLE(dbgw.iop))
++	if(gtk_widget_get_visible(dbgw.iop))
+         gtk_widget_hide(dbgw.iop);
+ }
+ 
+@@ -338,7 +338,7 @@
+ 	if(!options3.dbg_dock)
+ 	{
+ 		g_signal_handlers_block_by_func(GTK_OBJECT(item), on_registers1_activate, NULL);
+-		gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.regs));
++		gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.regs));
+ 		g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_registers1_activate, NULL);
+ 	}
+ 	else
+@@ -350,7 +350,7 @@
+ 	if(!options3.dbg_dock)
+ 	{
+ 		g_signal_handlers_block_by_func(GTK_OBJECT(item), on_breakpoints1_activate, NULL);
+-		gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.bkpts));
++		gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.bkpts));
+ 		g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_breakpoints1_activate, NULL);
+ 	}
+ 	else
+@@ -362,7 +362,7 @@
+ 	if(!options3.dbg_dock)
+ 	{
+ 		g_signal_handlers_block_by_func(GTK_OBJECT(item), on_memory1_activate, NULL);
+-		gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.mem));
++		gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.mem));
+ 		g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_memory1_activate, NULL);
+ 	}
+ 	else
+@@ -372,7 +372,7 @@
+     elt = g_list_nth(list, 3);
+     item = GTK_CHECK_MENU_ITEM(elt->data);
+     g_signal_handlers_block_by_func(GTK_OBJECT(item), on_pc_log1_activate, NULL);
+-    gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.pclog));
++    gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.pclog));
+     g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_pc_log1_activate, NULL);
+ 
+     // stack
+@@ -381,7 +381,7 @@
+ 	if(!options3.dbg_dock)
+ 	{
+ 		g_signal_handlers_block_by_func(GTK_OBJECT(item), on_stack_frame1_activate, NULL);
+-		gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.stack));
++		gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.stack));
+ 		g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_stack_frame1_activate, NULL);
+ 	}
+ 	else
+@@ -393,7 +393,7 @@
+ 	if(!options3.dbg_dock)
+ 	{
+ 		g_signal_handlers_block_by_func(GTK_OBJECT(item), on_heap_frame1_activate, NULL);
+-		gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.heap));
++		gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.heap));
+ 		g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_heap_frame1_activate, NULL);
+ 	}
+ 	else
+@@ -403,7 +403,7 @@
+ 	elt = g_list_nth(list, 6);
+     item = GTK_CHECK_MENU_ITEM(elt->data);
+     g_signal_handlers_block_by_func(GTK_OBJECT(item), on_ioports_frame1_activate, NULL);
+-    gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.iop));
++    gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.iop));
+     g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_ioports_frame1_activate, NULL);
+ 
+ 	// dock/multi mode
+@@ -718,4 +718,4 @@
+ {
+ 	printf("Duration (%s): %i ms\n", str, TO_CURRENT(profile));
+ }
+-*/
+\ No newline at end of file
++*/
diff --git a/debian/patches/05_remove_vlc_cable.dpatch b/debian/patches/05_remove_vlc_cable.dpatch
new file mode 100644
index 0000000..0d5ca19
--- /dev/null
+++ b/debian/patches/05_remove_vlc_cable.dpatch
@@ -0,0 +1,32 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_remove_vlc_cable.dpatch by  <scott at kitterman.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix FTBFS with newer libs - Cherry pick from upstream svn
+## DP: http://svn.tilp.info/cgi-bin/viewvc.cgi/tiemu/trunk/src/gui/device.c?root=tiemu&view=log#rev2820
+
+ at DPATCH@
+diff -urNad tiemu-3.02~/src/gui/device.c tiemu-3.02/src/gui/device.c
+--- tiemu-3.02~/src/gui/device.c	2007-12-30 18:14:15.000000000 -0500
++++ tiemu-3.02/src/gui/device.c	2010-04-26 01:34:36.657234841 -0400
+@@ -102,10 +102,6 @@
+ 		gtk_option_menu_set_history(GTK_OPTION_MENU(data), 7);
+ 	break;
+ 	
+-	case CABLE_VTL:
+-		gtk_option_menu_set_history(GTK_OPTION_MENU(data), 8);
+-	break;   
+-
+ 	case CABLE_ILP:
+ 		gtk_option_menu_set_history(GTK_OPTION_MENU(data), 9);
+ 	break;
+@@ -194,8 +190,7 @@
+ 	case 5: tmp.cable_model = CABLE_USB; break;	
+ 	case 6: tmp.cable_model = CABLE_VTI; break;
+ 	case 7: tmp.cable_model = CABLE_TIE; break;
+-	case 8: tmp.cable_model = CABLE_VTL; break;
+-	case 9: tmp.cable_model = CABLE_ILP; break;
++	case 8: tmp.cable_model = CABLE_ILP; break;
+ 	}
+ }
+ 
diff --git a/debian/patches/06_drop_GtkNotebookPage.dpatch b/debian/patches/06_drop_GtkNotebookPage.dpatch
new file mode 100644
index 0000000..5da1c79
--- /dev/null
+++ b/debian/patches/06_drop_GtkNotebookPage.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 06_drop_GtkNotebookPage.dpatch by  <scott at kitterman.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Replace deprecated function with gpointer to fix FTBFS.
+
+ at DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_mem.c tiemu-3.02/src/gui/debugger/dbg_mem.c
+--- tiemu-3.02~/src/gui/debugger/dbg_mem.c	2010-10-17 14:32:16.000000000 -0400
++++ tiemu-3.02/src/gui/debugger/dbg_mem.c	2010-10-17 14:33:27.000000000 -0400
+@@ -593,7 +593,7 @@
+ 
+ GLADE_CB void
+ on_notebook1_switch_page               (GtkNotebook     *notebook,
+-                                        GtkNotebookPage *page,
++                                        gpointer        *page,
+                                         guint            page_num,
+                                         gpointer         user_data)
+ {
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..da0b038
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,89 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+autotools:
+	rm -f config.sub config.guess
+	ln -s /usr/share/misc/config.sub config.sub
+	ln -s /usr/share/misc/config.guess config.guess
+
+configure: configure-stamp
+configure-stamp: autotools
+	dh_testdir
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+		--prefix=/usr --mandir=\$${prefix}/share/man CFLAGS="$(CFLAGS)" \
+		LDFLAGS="-Wl,-z,defs" --without-kde --disable-gdb --enable-dbus
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp: patch
+	dh_testdir
+	$(MAKE)
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f build-stamp configure-stamp po/stamp-po build/Makefile
+	rm -f config.sub config.guess
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) install prefix=$(CURDIR)/debian/tiemu/usr
+	# .gladep files should not be installed
+	rm -rf debian/tiemu/usr/share/tiemu/glade/*.gladep
+	# avoid installing another copy of the GPL
+	cd debian/tiemu/usr/share/tiemu && ln -sf ../common-licenses/GPL COPYING && cd -
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installmenu
+	dh_installman
+	dh_installinfo
+	dh_installchangelogs ChangeLog
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure patch unpach
diff --git a/debian/tiemu.dirs b/debian/tiemu.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/tiemu.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/tiemu.docs b/debian/tiemu.docs
new file mode 100644
index 0000000..0d25807
--- /dev/null
+++ b/debian/tiemu.docs
@@ -0,0 +1,5 @@
+README
+README.linux
+RELEASE
+TODO
+BUGS
diff --git a/debian/tiemu.menu b/debian/tiemu.menu
new file mode 100644
index 0000000..1d9bdd7
--- /dev/null
+++ b/debian/tiemu.menu
@@ -0,0 +1,2 @@
+?package(tiemu):needs="X11" section="Applications/Science/Mathematics" \
+  title="TIemu" command="/usr/bin/tiemu"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/tiemu.git



More information about the debian-science-commits mailing list