diff --git a/srcpkgs/apostrophe/patches/webkit2gtk4.1.patch b/srcpkgs/apostrophe/patches/webkit2gtk4.1.patch new file mode 100644 index 00000000000..7687651b1af --- /dev/null +++ b/srcpkgs/apostrophe/patches/webkit2gtk4.1.patch @@ -0,0 +1,42 @@ +Source: https://src.fedoraproject.org/rpms/apostrophe/blob/03c4bd0695446e51dc466201d94719610c2d89f0/f/webkit2gtk4.1.patch +See: https://gitlab.gnome.org/World/apostrophe/-/issues/440 + +diff --git a/apostrophe/inline_preview.py b/apostrophe/inline_preview.py +index 6e2fcc8..7a3c84f 100644 +--- a/apostrophe/inline_preview.py ++++ b/apostrophe/inline_preview.py +@@ -22,7 +22,7 @@ from urllib.parse import unquote + import gi + + gi.require_version("Gtk", "3.0") +-gi.require_version("WebKit2", "4.0") ++gi.require_version("WebKit2", "4.1") + from gi.repository import Gtk, Gdk, GdkPixbuf, GLib + from gi.repository import WebKit2 + from apostrophe import latex_to_PNG, markup_regex +diff --git a/apostrophe/preview_handler.py b/apostrophe/preview_handler.py +index f2edd61..dce6ef2 100644 +--- a/apostrophe/preview_handler.py ++++ b/apostrophe/preview_handler.py +@@ -22,7 +22,7 @@ import gi + from apostrophe.preview_renderer import PreviewRenderer + from apostrophe.settings import Settings + +-gi.require_version('WebKit2', '4.0') ++gi.require_version('WebKit2', '4.1') + from gi.repository import WebKit2, GLib, Gtk, GObject + + from apostrophe.preview_converter import PreviewConverter +diff --git a/apostrophe/preview_web_view.py b/apostrophe/preview_web_view.py +index bfd932c..a3599c8 100644 +--- a/apostrophe/preview_web_view.py ++++ b/apostrophe/preview_web_view.py +@@ -17,7 +17,7 @@ import webbrowser + + import gi + +-gi.require_version('WebKit2', '4.0') ++gi.require_version('WebKit2', '4.1') + from gi.repository import WebKit2, GLib, GObject + + diff --git a/srcpkgs/apostrophe/template b/srcpkgs/apostrophe/template index 9523f05ea66..acd19ae1a75 100644 --- a/srcpkgs/apostrophe/template +++ b/srcpkgs/apostrophe/template @@ -1,13 +1,13 @@ # Template file for 'apostrophe' pkgname=apostrophe version=2.6.3 -revision=3 +revision=4 build_style=meson build_helper=gir hostmakedepends="python3 glib-devel appstream-glib pkg-config gettext sassc" makedepends="libglib-devel gtk+3-devel libhandy1-devel" depends="python3-gobject python3-chardet python3-setuptools python3-pypandoc - gspell iso-codes libhandy1 webkit2gtk" + gspell iso-codes libhandy1 libwebkit2gtk41" short_desc="GTK based distraction free Markdown editor" maintainer="Orphaned " license="GPL-3.0-only"