Dear maintainer,

I've prepared an NMU for presage (versioned as 0.8.9-1.1) and
uploaded it to the archive.  It's the same patch I sent before, but
with the bug number added to debian/changelog, the changelog entry date
touched, and the package rebuilt.

Cheers,
    Olly
diff -Nru presage-0.8.9/debian/changelog presage-0.8.9/debian/changelog
--- presage-0.8.9/debian/changelog	2013-10-02 18:28:47.000000000 -0300
+++ presage-0.8.9/debian/changelog	2014-09-14 13:19:32.000000000 -0300
@@ -1,3 +1,11 @@
+presage (0.8.9-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Update for wxPython3.0 (Closes: #758499):
+    + New patch: wxpy3.0-compat.patch
+
+ -- Olly Betts <o...@survex.com>  Sun, 14 Sep 2014 16:19:03 +0000
+
 presage (0.8.9-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru presage-0.8.9/debian/control presage-0.8.9/debian/control
--- presage-0.8.9/debian/control	2013-10-02 18:28:47.000000000 -0300
+++ presage-0.8.9/debian/control	2014-08-18 03:54:41.000000000 -0300
@@ -14,7 +14,7 @@
  swig2.0 (>= 2.0.4),
  libgtk2.0-dev (>= 2.12),
  python-dbus,
- python-wxgtk2.8
+ python-wxgtk3.0
 Build-Depends-Indep: doxygen, graphviz
 Standards-Version: 3.9.4
 Homepage: http://presage.sourceforge.net/
@@ -178,7 +178,7 @@
 Depends: ${python:Depends},
  ${misc:Depends},
  python-presage (>= ${source:Version}),
- python-wxgtk2.8 (>= 2.8.7)
+ python-wxgtk3.0
 Description: intelligent predictive wxPython text editor
  This package contains the wxPython predictive text editor pyprompter.
  .
diff -Nru presage-0.8.9/debian/patches/series presage-0.8.9/debian/patches/series
--- presage-0.8.9/debian/patches/series	1969-12-31 21:00:00.000000000 -0300
+++ presage-0.8.9/debian/patches/series	2014-08-18 04:34:25.000000000 -0300
@@ -0,0 +1 @@
+wxpy3.0-compat.patch
diff -Nru presage-0.8.9/debian/patches/wxpy3.0-compat.patch presage-0.8.9/debian/patches/wxpy3.0-compat.patch
--- presage-0.8.9/debian/patches/wxpy3.0-compat.patch	1969-12-31 21:00:00.000000000 -0300
+++ presage-0.8.9/debian/patches/wxpy3.0-compat.patch	2014-08-18 04:47:21.000000000 -0300
@@ -0,0 +1,34 @@
+Description: Make compatible with wxPython 3.0
+Author: Olly Betts <o...@survex.com>
+Forwarded: no
+Last-Update: 2014-08-18
+
+--- a/apps/python/prompter/prompter.py
++++ b/apps/python/prompter/prompter.py
+@@ -60,6 +60,8 @@
+       self.config = config
+       self.suggestions = suggestions
+       wx.App.__init__(self, redirect)
++      # Suppress WXDEBUG assertions, as happens by default with wx2.8.
++      wx.App.SetAssertMode(self, wx.PYAPP_ASSERT_SUPPRESS)
+ 
+    def OnInit(self):
+       self.frame = PrompterFrame(parent=None, id=-1, title='pyprompter', version=self.version, config=self.config, suggestions=self.suggestions)
+@@ -249,7 +251,7 @@
+       # dialog is set up to change the current working directory to the path chosen.
+       dlg = wx.FileDialog(
+           self, message="Choose a file", defaultDir="", 
+-          defaultFile="", wildcard=self.wildcard, style=wx.OPEN | wx.CHANGE_DIR
++          defaultFile="", wildcard=self.wildcard, style=wx.FD_OPEN | wx.FD_CHANGE_DIR
+           )
+       
+       # Show the dialog and retrieve the user response. If it is the OK response, 
+@@ -298,7 +300,7 @@
+       # directory than the one initially set.
+       dlg = wx.FileDialog(
+           self, message="Save file as ...", defaultDir="", 
+-          defaultFile="", wildcard=self.wildcard, style=wx.SAVE
++          defaultFile="", wildcard=self.wildcard, style=wx.FD_SAVE
+           )
+ 
+       # This sets the default filter that the user will initially see. Otherwise,

Reply via email to