From: Herman Rimm via Guix-patches via <guix-patches@gnu.org>
To: 70884@debbugs.gnu.org
Subject: [bug#70884] [PATCH 2/2] gnu: qutebrowser: Warn about missing .bdic files and ignore version.
Date: Sat, 11 May 2024 21:57:53 +0200 [thread overview]
Message-ID: <cb6105f79210c4ac51503560576549e771474023.1715456480.git.herman@rimm.ee> (raw)
In-Reply-To: <cover.1715456480.git.herman@rimm.ee>
* gnu/packages/web.browsers.scm (qutebrowser): Add build phase.
Change-Id: Ib33c69ca4c95329c82edf9c7a6436ec9a1a0f7a7
---
gnu/packages/web-browsers.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index 78227a84fb..fe28f0c149 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -511,6 +511,22 @@ (define-public qutebrowser
(string-append "os.path.join(\""
(assoc-ref outputs "out")
"\", \"share\", \"qutebrowser\"")))))
+ (add-after 'unpack 'adjust-dictionary-warning-and-parsing
+ (lambda _
+ (substitute* "qutebrowser/browser/webengine/webenginesettings.py"
+ (("- see")
+ "- install hunspell-bdic-{} package files to")
+ (("scripts/dictcli.py in qutebrowser's ")
+ "{}/qutebrowser/qtwebengine_dictionaries")
+ (("\"sources\".format\\(code")
+ ".format(code, code.lower(), os.getenv('XDG_DATA_HOME')"))
+ (substitute* "qutebrowser/browser/webengine/spell.py"
+ (("for matching_dict in matching_dicts")
+ "if False")
+ (("filename for version, filename")
+ "os.path.basename(dict) for dict")
+ (("in sorted\\(versioned_dicts.*")
+ "in matching_dicts]"))))
(add-before 'check 'set-env-offscreen
(lambda _
(setenv "QT_QPA_PLATFORM" "offscreen")))
--
2.41.0
prev parent reply other threads:[~2024-05-11 19:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-11 19:51 [bug#70884] [PATCH 0/2] Package qutebrowser spellcheck files Herman Rimm via Guix-patches via
2024-05-11 19:57 ` [bug#70884] [PATCH 1/2] gnu: Add hunspell-bdic-en* Herman Rimm via Guix-patches via
2024-05-11 19:57 ` Herman Rimm via Guix-patches via [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cb6105f79210c4ac51503560576549e771474023.1715456480.git.herman@rimm.ee \
--to=guix-patches@gnu.org \
--cc=70884@debbugs.gnu.org \
--cc=herman@rimm.ee \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).