[Pkg-crosswire-devel] [Branch ~pkgcrosswire/bibletime/main] Rev 22: Add upstream patches r1317 and r1318, prepare for Debian unstable.

noreply at launchpad.net noreply at launchpad.net
Wed Jun 3 08:53:08 BST 2009


------------------------------------------------------------
revno: 22
committer: Jonathan Marsden <jmarsden at fastmail.fm>
branch nick: main
timestamp: Tue 2009-06-02 23:41:07 -0700
message:
  Add upstream patches r1317 and r1318, prepare for Debian unstable.
added:
  debian/README.source
  debian/patches/01_main_window_icon.diff
  debian/patches/02_remove_unwanted_debug_code.diff
modified:
  debian/changelog

=== added file 'debian/README.source'
--- debian/README.source	1970-01-01 00:00:00 +0000
+++ debian/README.source	2009-06-03 06:41:07 +0000
@@ -0,0 +1,35 @@
+This package uses CDBS (and therefore simple-patchsys.mk) in order to 
+apply patches to the upstream source. Patches are stored in 
+debian/patches and their filenames usually end in .patch or .diff .
+For further details, see the man page for cdbs-edit-patch.
+
+All commands described below should be run from the top directory of the 
+package source tree, unless otherwise stated.
+
+ * To generate the fully patched source, in a form ready for
+   editing, that would be built to create Debian packages, run: 
+
+     make -f debian/rules apply-patches
+
+   Note: It has been proposed that, in future, this should happen 
+   automatically when you run dpkg-source -x on a CDBS 
+   simple-patchsys.mk source package.  However, this proposal has 
+   apparently not yet been implemented, so for now you have to do 
+   it yourself like this.
+
+ * To modify the source and save those modifications so that
+   they will be applied when building the package, pick a
+   suitably informative patch file name, for example
+   01_add_README.source_file.patch, and then run:
+
+     cdbs-edit-patch 01_add_README.source_file.patch
+
+   This will place you in a new shell in a temporary copy of the 
+   source tree.  Make your desired modifications to it, and then 
+   exit the shell to create the patch file containing them (this 
+   file will appear in debian/patches).
+
+ * To remove source modifications that are currently being
+   applied when building the package, run:
+
+     make -f debian/rules reverse-patches

=== modified file 'debian/changelog'
--- debian/changelog	2009-05-28 23:32:39 +0000
+++ debian/changelog	2009-06-03 06:41:07 +0000
@@ -1,10 +1,14 @@
-bibletime (2.0-1) experimental; urgency=low
+bibletime (2.0-1) unstable; urgency=low
 
   * New upstream version.
   * debian/rules:
     - Ensure installation of manpages and .xpm work once again.
   * Remove debian/dirs, debian/install and other files from debian/
   * Remove debian/patches/00-fix-desktop.patch -- upstream fixed this.
+  * Add debian/patches/01_main_window_icon.diff
+    - upstream svn r1317.
+  * Add debian/patches/02_remove_unwanted_debug_code.diff
+    - upstream svn r1318.
   * Add debian/watch file.
   * debian/rules: use cdbs cmake.mk not kde4.mk
   * debian/control: Remove Build-depend on pkg-kde-tools.
@@ -24,7 +28,7 @@
     - Update copyright year range.
     - Update download location.
 
- -- Jonathan Marsden <jmarsden at fastmail.fm>  Thu, 28 May 2009 16:31:55 -0700
+ -- Jonathan Marsden <jmarsden at fastmail.fm>  Tue, 02 Jun 2009 23:37:30 -0700
 
 bibletime (1.6.5.1-1) unstable; urgency=low
 

=== added file 'debian/patches/01_main_window_icon.diff'
--- debian/patches/01_main_window_icon.diff	1970-01-01 00:00:00 +0000
+++ debian/patches/01_main_window_icon.diff	2009-06-03 06:41:07 +0000
@@ -0,0 +1,60 @@
+Associate an icon with the main window.  Upstream svn r1317.
+Index: ChangeLog
+===================================================================
+--- old/ChangeLog	(revision 1316)
++++ new/ChangeLog	(working copy)
+@@ -1,3 +1,6 @@
++2009-05-30 Gary Holmlund 
++	* Fix defect, the main window icon was missing - defect # 2798758
++
+ 2009-05-28 Martin Gruner <mgruner at crosswire.org>
+ 	* release 2.0
+ 
+Index: src/bibletime.cpp
+===================================================================
+--- old/src/bibletime.cpp	(revision 1316)
++++ new/src/bibletime.cpp	(working copy)
+@@ -20,6 +20,7 @@
+ 
+ #include "util/ctoolclass.h"
+ #include "util/cpointers.h"
++#include "util/cresmgr.h"
+ #include "util/directoryutil.h"
+ 
+ #include "backend/drivers/cswordmoduleinfo.h"
+@@ -75,6 +76,7 @@
+    initConnections();
+    readSettings();
+    setPlainCaption(QString());
++	setWindowIcon( util::filesystem::DirectoryUtil::getIcon(CResMgr::mainWindow::icon) );
+ }
+ 
+ BibleTime::~BibleTime() 
+Index: src/util/cresmgr.cpp
+===================================================================
+--- old/src/util/cresmgr.cpp	(revision 1316)
++++ new/src/util/cresmgr.cpp	(working copy)
+@@ -13,6 +13,9 @@
+ 
+ 
+ namespace CResMgr {
++	namespace mainWindow {
++		const QString icon = "bibletime.svg";
++	} // mainWindow
+ 	namespace modules {
+ 		namespace bible {
+ 			const QString icon_unlocked  = "bible.svg";
+Index: src/util/cresmgr.h
+===================================================================
+--- old/src/util/cresmgr.h	(revision 1316)
++++ new/src/util/cresmgr.h	(working copy)
+@@ -20,6 +20,9 @@
+ namespace CResMgr {
+ 	void init_tr();
+ 
++	namespace mainWindow {
++		extern const QString icon;
++	}
+ 	namespace modules {
+ 		namespace bible {
+ 			extern const QString icon_unlocked;

=== added file 'debian/patches/02_remove_unwanted_debug_code.diff'
--- debian/patches/02_remove_unwanted_debug_code.diff	1970-01-01 00:00:00 +0000
+++ debian/patches/02_remove_unwanted_debug_code.diff	2009-06-03 06:41:07 +0000
@@ -0,0 +1,32 @@
+Remove unwanted debug code that created ./out.txt.  Upstream svn r1318.
+Index: src/frontend/display/bthtmlreaddisplay.cpp
+===================================================================
+--- src/frontend/display/bthtmlreaddisplay.cpp	(revision 1317)
++++ src/frontend/display/bthtmlreaddisplay.cpp	(working copy)
+@@ -213,19 +213,11 @@
+ 	return QString();
+ }
+ 
+-#include <QTextStream>
+ // Puts html text and javascript into QWebView
+ void BtHtmlReadDisplay::setText( const QString& newText ) 
+ {
+ 	QString jsText = newText;
+ 
+-     QFile file("out.txt");
+-     if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
+-         return;
+-
+-     QTextStream out(&file);
+-     out <<  newText << "\n";
+-
+ 	jsText.replace(body,jsBegin+javascript+jsEnd+body);
+ 
+ 	// Disconnect any previous connect and connect to slot that loads the javascript object
+@@ -379,4 +371,4 @@
+     if ( e->type() == QEvent::Leave )
+         m_display->m_jsObject->clearPrevAttribute();
+     return QWidget::event(e);
+-}
+\ No newline at end of file
++}



--
lp:~pkgcrosswire/bibletime/main
https://code.launchpad.net/~pkgcrosswire/bibletime/main

Your team Crosswire Packaging Team is subscribed to branch lp:~pkgcrosswire/bibletime/main.
To unsubscribe from this branch go to https://code.launchpad.net/~pkgcrosswire/bibletime/main/+edit-subscription.




More information about the Pkg-crosswire-devel mailing list