diff options
author | Jeremy Bicha <jbicha@debian.org> | 2017-10-09 18:47:08 -0400 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2018-05-04 12:11:30 +0200 |
commit | 98af6bdaf874323f1660ffd497f7a84476bb48a4 (patch) | |
tree | a8ca249b6bd40583be471098097bf3f54d708a3d | |
parent | e774a81006ef9a1c4e22e96c004b48307758fe07 (diff) |
Import Debian changes 1.5.0-2.1
sparkleshare (1.5.0-2.1) unstable; urgency=medium
* Non-maintainer upload.
* Add 06-move_to_webkit2.patch:
- Cherry-picked patch borrowed from Fedora 27 to use the supported
webkit2gtk library (Closes: #878111)
* debian/control:
- Build-depend on libwebkit2-sharp-4.0-cil-dev instead of
libwebkitgtk3.0-cil-dev
-rw-r--r-- | debian/changelog | 14 | ||||
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | debian/patches/06-move_to_webkit2.patch | 101 | ||||
-rw-r--r-- | debian/patches/series | 1 |
4 files changed, 116 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 9faca7a..413a11d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,21 @@ +sparkleshare (1.5.0-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Add 06-move_to_webkit2.patch: + - Cherry-picked patch borrowed from Fedora 27 to use the supported + webkit2gtk library (Closes: #878111) + * debian/control: + - Build-depend on libwebkit2-sharp-4.0-cil-dev instead of + libwebkitgtk3.0-cil-dev + + -- Jeremy Bicha <jbicha@debian.org> Mon, 09 Oct 2017 18:47:08 -0400 + sparkleshare (1.5.0-2) unstable; urgency=medium * Fetch updates from the upstream's master branch. * Ship AppStream metadata. - -- Andrew Shadura <andrewsh@debian.org> Sat, 14 May 2016 12:38:12 +0100 + -- Andrew Shadura <andrewsh@debian.org> Tue, 10 May 2016 22:45:51 +0100 sparkleshare (1.5.0-1) unstable; urgency=medium diff --git a/debian/control b/debian/control index 3bc56e4..4b2c892 100644 --- a/debian/control +++ b/debian/control @@ -9,7 +9,7 @@ Build-Depends-Indep: dh-autoreconf, libappindicator3-0.1-cil-dev, libgtk3.0-cil-dev, libnotify3.0-cil-dev, - libwebkitgtk3.0-cil-dev, + libwebkit2-sharp-4.0-cil-dev, mono-devel (>= 3.2.8), python-nautilus Standards-Version: 3.9.6 diff --git a/debian/patches/06-move_to_webkit2.patch b/debian/patches/06-move_to_webkit2.patch new file mode 100644 index 0000000..3bec00e --- /dev/null +++ b/debian/patches/06-move_to_webkit2.patch @@ -0,0 +1,101 @@ +Description: Build with webkit2 +Source: https://src.fedoraproject.org/rpms/sparkleshare/blob/master/f/SparkleShare-1.5.0-move_to_webkit2.patch +diff -up SparkleShare-1.5.0/build/build.environment.mk.move_to_webkit2 SparkleShare-1.5.0/build/build.environment.mk +--- SparkleShare-1.5.0/build/build.environment.mk.move_to_webkit2 2015-12-22 15:21:47.000000000 +0100 ++++ SparkleShare-1.5.0/build/build.environment.mk 2017-10-07 15:48:37.719880936 +0200 +@@ -12,7 +12,7 @@ LINK_MONO_POSIX = -r:Mono.Posix + LINK_GLIB = $(GLIBSHARP_LIBS) + LINK_GTK = $(GTKSHARP_LIBS) + LINK_GNOME = $(GNOME_SHARP_LIBS) +-LINK_WEBKIT = $(WEBKITGTK_SHARP_LIBS) ++LINK_WEBKIT = $(WEBKIT2_SHARP_LIBS) + LINK_APP_INDICATOR = $(APP_INDICATOR_LIBS) + + REF_SPARKLELIB = $(LINK_SYSTEM) $(LINK_MONO_POSIX) +diff -up SparkleShare-1.5.0/configure.ac.move_to_webkit2 SparkleShare-1.5.0/configure.ac +--- SparkleShare-1.5.0/configure.ac.move_to_webkit2 2015-12-22 15:21:47.000000000 +0100 ++++ SparkleShare-1.5.0/configure.ac 2017-10-07 16:08:53.666097084 +0200 +@@ -66,12 +66,12 @@ if test "$OSNAME" = "Linux" ; then + + PKG_CHECK_MODULES(NOTIFY_SHARP, notify-sharp-3.0) + +- dnl check for webkitgtk-sharp +- PKG_CHECK_MODULES(WEBKITGTK_SHARP, webkitgtk-sharp-3.0, have_webkitgtk_sharp=yes, have_webkitgtk_sharp=no) +- if test "x$have_webkitgtk_sharp" = "xno" ; then +- AC_ERROR("webkitgtk-sharp is a required dependency: you need to install the appropriate devel package before you can compile") ++ dnl check for webkit2-sharp ++ PKG_CHECK_MODULES(WEBKIT2_SHARP, webkit2-sharp-4.0, have_webkit2_sharp=yes, have_webkit2_sharp=no) ++ if test "x$have_webkit2_sharp" = "xno" ; then ++ AC_ERROR("webkit2-sharp is a required dependency: you need to install the appropriate devel package before you can compile") + fi +- AC_SUBST(WEBKITGTK_SHARP_LIBS) ++ AC_SUBST(WEBKIT2_SHARP_LIBS) + + APPINDICATOR_REQUIRED=0.1 + +diff -up SparkleShare-1.5.0/SparkleShare/Linux/SparkleEventLog.cs.move_to_webkit2 SparkleShare-1.5.0/SparkleShare/Linux/SparkleEventLog.cs +--- SparkleShare-1.5.0/SparkleShare/Linux/SparkleEventLog.cs.move_to_webkit2 2015-12-22 15:21:47.000000000 +0100 ++++ SparkleShare-1.5.0/SparkleShare/Linux/SparkleEventLog.cs 2017-10-07 16:21:12.318399060 +0200 +@@ -18,7 +18,7 @@ + using System; + + using Gtk; +-using WebKit; ++using WebKit2; + + namespace SparkleShare { + +@@ -71,7 +71,7 @@ namespace SparkleShare { + + this.web_view = new WebView () { Editable = false }; + this.web_view.Settings.EnablePlugins = false; +- this.web_view.NavigationRequested += WebViewNavigationRequested; ++ //this.web_view.NavigationRequested += WebViewNavigationRequested; + + this.scrolled_window.Add (this.web_view); + +@@ -263,12 +264,22 @@ namespace SparkleShare { + html = html.Replace ("<!-- $document-moved-background-image -->", "file://" + new string [] {icons_path, "document-moved.png"}.Combine ()); + + this.spinner.Stop (); +- this.scrolled_window.Remove (this.web_view); ++ this.scrolled_window.Remove (this.scrolled_window.Child); + this.web_view.Dispose (); + + this.web_view = new WebView () { Editable = false }; +- this.web_view.LoadString (html, "text/html", "UTF-8", "file://"); +- this.web_view.NavigationRequested += WebViewNavigationRequested; ++ this.web_view.LoadHtml (html, "file:///"); ++ ++ ++ ++ web_view.DecidePolicy += delegate(object o, DecidePolicyArgs args) { ++ Console.WriteLine (":::: " + (args.Decision as NavigationPolicyDecision).NavigationAction.Request.Uri); ++ // if (args.Decision. == PolicyDecisionType.NavigationAction) { ++ ++ // } ++ }; ++ ++ //this.web_view.NavigationRequested += WebViewNavigationRequested; + this.scrolled_window.Add (this.web_view); + + this.content_wrapper.Remove (this.content_wrapper.Child); +@@ -276,14 +287,14 @@ namespace SparkleShare { + this.scrolled_window.ShowAll (); + } + +- +- private void WebViewNavigationRequested (object o, WebKit.NavigationRequestedArgs args) { ++ /* ++ private void WebViewNavigationRequested (object o, WebKit2.NavigationRequestedArgs args) { + Controller.LinkClicked (args.Request.Uri); + + // Don't follow HREFs (as this would cause a page refresh) + if (!args.Request.Uri.Equals ("file:")) + args.RetVal = 1; +- } ++ }*/ + } + } + + diff --git a/debian/patches/series b/debian/patches/series index 5c6b913..eb85623 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ 03-add_stop_command.patch 04-glib_application_run.diff 05-changes-from-master.patch +06-move_to_webkit2.patch |