apostrophe: use libwebkit2gtk41

This commit is contained in:
oreo639 2024-02-25 16:15:06 -08:00
parent 6569e1df95
commit ac4e3aa28f
2 changed files with 44 additions and 2 deletions

View File

@ -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

View File

@ -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 <orphan@voidlinux.org>"
license="GPL-3.0-only"