]> spindle.queued.net Git - midori/commitdiff
change the default-homepage patch to use the files in debian/config/ to set the defau...
authorRyan Niebur <ryanryan52@gmail.com>
Fri, 29 May 2009 06:44:48 +0000 (23:44 -0700)
committerRyan Niebur <ryanryan52@gmail.com>
Fri, 29 May 2009 06:44:48 +0000 (23:44 -0700)
debian/changelog
debian/clean [new file with mode: 0644]
debian/config/Debian.h [new file with mode: 0644]
debian/config/Ubuntu.h [new file with mode: 0644]
debian/control
debian/patches/default-homepage
debian/rules

index aef9f88f8197a47892c0f0b4488264b95bfb0fda..380e8ac32b03aa04f24621abcb3472e7a7805493 100644 (file)
@@ -12,8 +12,11 @@ midori (0.1.7-1) UNRELEASED; urgency=low
     patch (Closes: #525991)
   * New Upstream Version
   * refresh patches
+  * change the default-homepage patch to use the files in debian/config/
+    to set the default homepage based on whether it's debian, ubuntu,
+    etc (second half of ubuntu diff)
 
- -- Ryan Niebur <ryanryan52@gmail.com>  Thu, 28 May 2009 23:16:32 -0700
+ -- Ryan Niebur <ryanryan52@gmail.com>  Thu, 28 May 2009 23:28:24 -0700
 
 midori (0.1.6-1) experimental; urgency=low
 
diff --git a/debian/clean b/debian/clean
new file mode 100644 (file)
index 0000000..d2a3672
--- /dev/null
@@ -0,0 +1 @@
+midori/midori-debian.h
diff --git a/debian/config/Debian.h b/debian/config/Debian.h
new file mode 100644 (file)
index 0000000..318a23d
--- /dev/null
@@ -0,0 +1 @@
+#define DEBIAN_DISTRO_DEFAULT_HOMEPAGE "file:///usr/share/doc/midori/user/midori.html"
diff --git a/debian/config/Ubuntu.h b/debian/config/Ubuntu.h
new file mode 100644 (file)
index 0000000..d3466f2
--- /dev/null
@@ -0,0 +1 @@
+#define DEBIAN_DISTRO_DEFAULT_HOMEPAGE "file:///usr/share/ubuntu-artwork/home/index.html"
index 2aa88d67757f4e9401bff15cec47b0c235342e53..38776fe5dad534fc75a84cdf60b4e5975c56d88b 100644 (file)
@@ -5,6 +5,7 @@ Maintainer: Ryan Niebur <ryanryan52@gmail.com>
 Build-Depends:
  debhelper (>= 7.0.50),
  quilt (>= 0.46-7),
+ lsb-release,
  libgtk2.0-dev (>= 2.10),
  libglib2.0-dev,
  libwebkit-dev (>= 1.1),
index 2795d051396267fede8851c23358731c144c2fa3..e20d89bc2893305189277dee5a574c1b23ea3fa6 100644 (file)
@@ -9,12 +9,20 @@ Midori's user documentation.  This is similar to what Dillo did/does.
 
 --- a/midori/midori-websettings.c
 +++ b/midori/midori-websettings.c
-@@ -558,7 +558,7 @@
+@@ -10,6 +10,7 @@
+ */
+ #include "midori-websettings.h"
++#include "midori-debian.h"
+ #include "sokoke.h"
+@@ -558,7 +559,7 @@
                                       "homepage",
                                       _("Homepage"),
                                       _("The homepage"),
 -                                     "http://www.google.com",
-+                                     "file:///usr/share/doc/midori/user/midori.html",
++                                     DEBIAN_DISTRO_DEFAULT_HOMEPAGE,
                                       flags));
  
      /**
index 04d829ef54c578523e718973f328f24cbffb1d42..eb6c4d3701a28e933d4f58acbffca8f7b496d8a0 100755 (executable)
@@ -3,6 +3,11 @@
 %:
        dh --with quilt $@
 
+override_dh_quilt_patch:
+       ln -sf ../debian/config/$(shell lsb_release -is).h midori/midori-debian.h
+       test -e midori/midori-debian.h
+       dh_quilt_patch
+
 override_dh_auto_clean:
        ./waf --nocache distclean
        rm -rf _build_