> feel free to NMU, thanks for your good work,
Here's the patch for the actual NMU I've just uploaded (just dch -r and
added a reference to the bug#, then rebuilt against current unstable as
the previous build was over 2 months old).
Cheers,
Olly
diff -Nru pgn2web-0.4/cli.c pgn2web-0.4/cli.c
--- pgn2web-0.4/cli.c 2014-06-06 09:48:14.000000000 +1200
+++ pgn2web-0.4/cli.c 2005-04-26 07:25:21.000000000 +1200
@@ -30,7 +30,7 @@
/* default installation path */
#ifndef INSTALL_PATH
-#define INSTALL_PATH "/usr/share/pgn2web/"
+#define INSTALL_PATH "/usr/local/pgn2web/"
#endif
char usage[] = "usage: pgn2web\n"
diff -Nru pgn2web-0.4/debian/changelog pgn2web-0.4/debian/changelog
--- pgn2web-0.4/debian/changelog 2014-06-06 09:48:14.000000000 +1200
+++ pgn2web-0.4/debian/changelog 2014-06-06 09:44:18.000000000 +1200
@@ -1,3 +1,12 @@
+pgn2web (0.4-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Update to source format "3.0 (quilt)".
+ * Update to use wxWidgets 3.0 (new patch wx3.0-compat.patch).
+ (Closes: #743334)
+
+ -- Olly Betts <[email protected]> Fri, 06 Jun 2014 09:43:31 +1200
+
pgn2web (0.4-1) unstable; urgency=low
* Initial release (Closes: #565158)
diff -Nru pgn2web-0.4/debian/control pgn2web-0.4/debian/control
--- pgn2web-0.4/debian/control 2014-06-06 09:48:14.000000000 +1200
+++ pgn2web-0.4/debian/control 2013-11-23 04:56:38.000000000 +1300
@@ -2,7 +2,7 @@
Section: web
Priority: extra
Maintainer: Oliver Korff <[email protected]>
-Build-Depends: debhelper (>= 7), libwxgtk2.8-dev, wx2.8-headers, libwxbase2.8-dev
+Build-Depends: debhelper (>= 7), libwxgtk3.0-dev
Standards-Version: 3.8.3
Homepage: http://sourceforge.net/projects/pgn2web/
diff -Nru pgn2web-0.4/debian/patches/install-location.patch pgn2web-0.4/debian/patches/install-location.patch
--- pgn2web-0.4/debian/patches/install-location.patch 1970-01-01 12:00:00.000000000 +1200
+++ pgn2web-0.4/debian/patches/install-location.patch 2014-04-02 09:48:27.000000000 +1300
@@ -0,0 +1,46 @@
+Description: Fix install locations for Debian
+Last-Update: 2014-04-02
+
+--- pgn2web-0.4.orig/cli.c
++++ pgn2web-0.4/cli.c
+@@ -30,7 +30,7 @@
+
+ /* default installation path */
+ #ifndef INSTALL_PATH
+-#define INSTALL_PATH "/usr/local/pgn2web/"
++#define INSTALL_PATH "/usr/share/pgn2web/"
+ #endif
+
+ char usage[] = "usage: pgn2web\n"
+--- pgn2web-0.4.orig/gui.h
++++ pgn2web-0.4/gui.h
+@@ -17,7 +17,7 @@ const wxChar SEPERATOR = wxT('/');
+
+ // default installation path (*nix)
+ #ifndef INSTALL_PATH
+-#define INSTALL_PATH "/usr/local/pgn2web/"
++#define INSTALL_PATH "/usr/share/pgn2web/"
+ #endif
+
+ //define event ids
+--- pgn2web-0.4.orig/makefile
++++ pgn2web-0.4/makefile
+@@ -38,10 +38,10 @@ clean:
+ rm -f pgn2web p2wgui *.o *.do *~ *# *.html
+
+ install:
+- if [ ! -e /usr/local/pgn2web ]; then mkdir /usr/local/pgn2web; fi
+- cp -r images /usr/local/pgn2web/
+- cp -r templates /usr/local/pgn2web/
+- cp pgn2web /usr/local/pgn2web/
+- cp p2wgui /usr/local/pgn2web/
+- ln -fs /usr/local/pgn2web/pgn2web /usr/bin/
+- ln -fs /usr/local/pgn2web/p2wgui /usr/bin/
+\ No newline at end of file
++ if [ ! -e $(DESTDIR)/usr/share/pgn2web ]; then mkdir $(DESTDIR)/usr/share/pgn2web; fi
++ cp -r images $(DESTDIR)/usr/share/pgn2web/
++ cp -r templates $(DESTDIR)/usr/share/pgn2web/
++ cp pgn2web $(DESTDIR)/usr/bin/
++ cp p2wgui $(DESTDIR)/usr/bin/
++# ln -fs /usr/share/pgn2web/pgn2web /usr/bin/
++# ln -fs /usr/share/pgn2web/p2wgui /usr/bin/
diff -Nru pgn2web-0.4/debian/patches/series pgn2web-0.4/debian/patches/series
--- pgn2web-0.4/debian/patches/series 1970-01-01 12:00:00.000000000 +1200
+++ pgn2web-0.4/debian/patches/series 2014-04-02 09:49:09.000000000 +1300
@@ -0,0 +1,2 @@
+install-location.patch
+wx3.0-compat.patch
diff -Nru pgn2web-0.4/debian/patches/wx3.0-compat.patch pgn2web-0.4/debian/patches/wx3.0-compat.patch
--- pgn2web-0.4/debian/patches/wx3.0-compat.patch 1970-01-01 12:00:00.000000000 +1200
+++ pgn2web-0.4/debian/patches/wx3.0-compat.patch 2014-04-02 09:48:28.000000000 +1300
@@ -0,0 +1,24 @@
+Description: Fixes for compatibility with wxWidgets 3.0
+Author: Olly Betts <[email protected]>
+Last-Update: 2014-04-02
+
+--- pgn2web-0.4.orig/gui.cpp
++++ pgn2web-0.4/gui.cpp
+@@ -237,7 +237,7 @@ void p2wFrame::browsePGN(wxCommandEvent&
+ {
+ wxFileDialog *cDialog = new wxFileDialog(this, wxT("Select a PGN file..."), wxT(""), wxT(""),
+ wxT("PGN files(*.pgn;*.PGN)|*.pgn;*.PGN"),
+- wxOPEN | wxFILE_MUST_EXIST);
++ wxFD_OPEN | wxFD_FILE_MUST_EXIST);
+ if(wxID_OK == cDialog->ShowModal()) {
+ pgnText->SetValue(cDialog->GetPath());
+ }
+@@ -247,7 +247,7 @@ void p2wFrame::browsePGN(wxCommandEvent&
+ void p2wFrame::browseHTML(wxCommandEvent& event)
+ {
+ wxFileDialog *cDialog = new wxFileDialog(this, wxT("Name HTML file(s)..."), wxT(""), wxT(""),
+- wxT("HTML files(*.html)|*.html"), wxSAVE);
++ wxT("HTML files(*.html)|*.html"), wxFD_SAVE);
+ if(wxID_OK == cDialog->ShowModal()) {
+ htmlText->SetValue(cDialog->GetPath());
+ }
diff -Nru pgn2web-0.4/debian/source/format pgn2web-0.4/debian/source/format
--- pgn2web-0.4/debian/source/format 1970-01-01 12:00:00.000000000 +1200
+++ pgn2web-0.4/debian/source/format 2014-04-02 09:45:40.000000000 +1300
@@ -0,0 +1 @@
+3.0 (quilt)
diff -Nru pgn2web-0.4/gui.h pgn2web-0.4/gui.h
--- pgn2web-0.4/gui.h 2014-06-06 09:48:14.000000000 +1200
+++ pgn2web-0.4/gui.h 2005-04-26 07:25:22.000000000 +1200
@@ -17,7 +17,7 @@
// default installation path (*nix)
#ifndef INSTALL_PATH
-#define INSTALL_PATH "/usr/share/pgn2web/"
+#define INSTALL_PATH "/usr/local/pgn2web/"
#endif
//define event ids
diff -Nru pgn2web-0.4/makefile pgn2web-0.4/makefile
--- pgn2web-0.4/makefile 2014-06-06 09:48:14.000000000 +1200
+++ pgn2web-0.4/makefile 2005-03-31 09:44:53.000000000 +1200
@@ -38,10 +38,10 @@
rm -f pgn2web p2wgui *.o *.do *~ *# *.html
install:
- if [ ! -e $(DESTDIR)/usr/share/pgn2web ]; then mkdir $(DESTDIR)/usr/share/pgn2web; fi
- cp -r images $(DESTDIR)/usr/share/pgn2web/
- cp -r templates $(DESTDIR)/usr/share/pgn2web/
- cp pgn2web $(DESTDIR)/usr/bin/
- cp p2wgui $(DESTDIR)/usr/bin/
-# ln -fs /usr/share/pgn2web/pgn2web /usr/bin/
-# ln -fs /usr/share/pgn2web/p2wgui /usr/bin/
+ if [ ! -e /usr/local/pgn2web ]; then mkdir /usr/local/pgn2web; fi
+ cp -r images /usr/local/pgn2web/
+ cp -r templates /usr/local/pgn2web/
+ cp pgn2web /usr/local/pgn2web/
+ cp p2wgui /usr/local/pgn2web/
+ ln -fs /usr/local/pgn2web/pgn2web /usr/bin/
+ ln -fs /usr/local/pgn2web/p2wgui /usr/bin/
\ No newline at end of file