Balló György pushed to branch main at Arch Linux / Packaging / Packages / iotas
Commits:
0e21d673 by Balló György at 2025-01-31T14:12:17+01:00
Update URL
- - - - -
b4463a0b by Balló György at 2025-02-02T16:34:28+01:00
upgpkg: 0.9.5-6: Don't abort if no dictionaries found
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + iotas-no-dicts.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,8 +1,8 @@
pkgbase = iotas
pkgdesc = Simple note taking with Markdown support and optional
Nextcloud Notes sync
pkgver = 0.9.5
- pkgrel = 5
- url = https://gitlab.gnome.org/World/iotas
+ pkgrel = 6
+ url = https://apps.gnome.org/Iotas/
arch = any
license = GPL-3.0-or-later
makedepends = appstream
@@ -28,9 +28,11 @@ pkgbase = iotas
depends = webkitgtk-6.0
source = git+https://gitlab.gnome.org/World/iotas.git#tag=0.9.5
source =
https://github.com/KaTeX/KaTeX/releases/download/v0.16.11/katex.tar.gz
+ source = iotas-no-dicts.patch
source = iotas-builtin-strenum.patch
b2sums =
1e421ff2dcf6c35d1f1b0a19043d4770c645d56b50ce11c6848dc338aade6f8d80c9b1457ecf83cab43e820d0e964bc4fa36ec2001d13938819a394f0ad4a67d
b2sums =
bf574824d35e1c4cbacb0fbcc752934b4b99cec11921f84c3a2eb18941156ebcbc49e3f214c5f58af631cba74115d9c6df6bfc3086ecb4e382d167b637367e0d
+ b2sums =
b9c62696335de60f65e4e5ffff114297874bd89db9d97934202b4a70b101b3a933250f3976df1e092897bf3d0a75314d458f16cf382cfe0cf1fd54aceac35740
b2sums =
29475d433aa9811743ce1f8b808c0e22cba29f0c6d22670e9a98f3ca8afbd3fb2457ec19234cc7f129953817d72cf56b646acfdff319a2c0739866b4cbc06de9
pkgname = iotas
=====================================
PKGBUILD
=====================================
@@ -3,10 +3,10 @@
pkgname=iotas
pkgver=0.9.5
_katex_version=0.16.11
-pkgrel=5
+pkgrel=6
pkgdesc='Simple note taking with Markdown support and optional Nextcloud Notes
sync'
arch=(any)
-url='https://gitlab.gnome.org/World/iotas'
+url='https://apps.gnome.org/Iotas/'
license=(GPL-3.0-or-later)
depends=(
dconf
@@ -36,17 +36,22 @@ makedepends=(
source=(
"git+https://gitlab.gnome.org/World/iotas.git#tag=$pkgver"
"https://github.com/KaTeX/KaTeX/releases/download/v$_katex_version/katex.tar.gz"
+ iotas-no-dicts.patch
iotas-builtin-strenum.patch
)
b2sums=(
1e421ff2dcf6c35d1f1b0a19043d4770c645d56b50ce11c6848dc338aade6f8d80c9b1457ecf83cab43e820d0e964bc4fa36ec2001d13938819a394f0ad4a67d
bf574824d35e1c4cbacb0fbcc752934b4b99cec11921f84c3a2eb18941156ebcbc49e3f214c5f58af631cba74115d9c6df6bfc3086ecb4e382d167b637367e0d
+
b9c62696335de60f65e4e5ffff114297874bd89db9d97934202b4a70b101b3a933250f3976df1e092897bf3d0a75314d458f16cf382cfe0cf1fd54aceac35740
29475d433aa9811743ce1f8b808c0e22cba29f0c6d22670e9a98f3ca8afbd3fb2457ec19234cc7f129953817d72cf56b646acfdff319a2c0739866b4cbc06de9
)
prepare() {
cd $pkgname
+ # https://gitlab.gnome.org/World/iotas/-/merge_requests/272
+ git apply -3 ../iotas-no-dicts.patch
+
# Use built-in StrEnum
git apply -3 ../iotas-builtin-strenum.patch
}
=====================================
iotas-no-dicts.patch
=====================================
@@ -0,0 +1,39 @@
+From 123c3a0379d5aa7002b7dfde0b234e7d85e2822a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <[email protected]>
+Date: Sun, 2 Feb 2025 15:09:46 +0000
+Subject: [PATCH] fix: Don't abort if no dictionaries found
+
+PyGTKSpellcheck raises NoDictionariesFound error when no dictionaries found on
the system. Instead of aborting the whole program, just disable the spell
checker in this case.
+---
+ iotas/editor_text_view.py | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/iotas/editor_text_view.py b/iotas/editor_text_view.py
+index cce3eac..9ecb130 100644
+--- a/iotas/editor_text_view.py
++++ b/iotas/editor_text_view.py
+@@ -3,7 +3,7 @@ import gi
+ gi.require_version("GtkSource", "5")
+ from gi.repository import Gdk, Gio, GLib, GObject, Gtk, GtkSource
+
+-from gtkspellcheck import SpellChecker
++from gtkspellcheck import SpellChecker, NoDictionariesFound
+
+ import locale
+ import logging
+@@ -244,7 +244,11 @@ class EditorTextView(GtkSource.View):
+ language = locale.getdefaultlocale()[0]
+ logging.debug(f'Attempting to use locale default spelling
language "{language}"')
+
+- self.__spellchecker = SpellChecker(self, language, collapse=False)
++ try:
++ self.__spellchecker = SpellChecker(self, language, collapse=False)
++ except NoDictionariesFound:
++ return
++
+ self.spellchecker_enabled = False
+ self.__spellchecker.batched_rechecking = True
+ if pref_language is not None:
+--
+GitLab
+
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/iotas/-/compare/a0a5d3de1f718644491812293fb2f48b68df991a...b4463a0b34a312008575713dad26e349523e4f91
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/iotas/-/compare/a0a5d3de1f718644491812293fb2f48b68df991a...b4463a0b34a312008575713dad26e349523e4f91
You're receiving this email because of your account on gitlab.archlinux.org.