Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sat, 13 Nov 2021 13:09:50 UTC Commit: 06d69e78b5aefc727504a9b4fed8062abd7926c8 https://github.com/geany/geany-osx/commit/06d69e78b5aefc727504a9b4fed8062abd...
Log Message: ----------- Add patch to allow enchant to look for its modules at bundle path
Modified Paths: -------------- geany.modules geany_patches/01-geany_plugins_spellcheck_relocation.patch
Modified: geany.modules 8 lines changed, 6 insertions(+), 2 deletions(-) =================================================================== @@ -138,7 +138,9 @@ <branch repo="github.com" module="geany/geany-plugins.git" checkoutdir="geany-plugins-git" - revision="master" /> + revision="master"> + <patch file="https://github.com/geany/geany-osx/raw/master/geany_patches/01-geany_plugins_spellcheck_relocation.patch" strip="1" /> + </branch> <dependencies> <dep package="geany-git" /> <dep package="geany-plugins-deps" /> @@ -151,7 +153,9 @@ <branch repo="download.geany.org" module="geany-plugins/geany-plugins-${version}.tar.bz2" checkoutdir="geany-plugins-${version}" - version="1.38" /> + version="1.38"> + <patch file="https://github.com/geany/geany-osx/raw/master/geany_patches/01-geany_plugins_spellcheck_relocation.patch" strip="1" /> + </branch> <dependencies> <dep package="geany-release" /> <dep package="geany-plugins-deps" />
Modified: geany_patches/01-geany_plugins_spellcheck_relocation.patch 28 lines changed, 28 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,28 @@ +From 7379b7c197f5cdbcf94457b5fc0c3f441acbbd56 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jir=CC=8Ci=CC=81=20Techet?= techet@gmail.com +Date: Sat, 13 Nov 2021 13:53:00 +0100 +Subject: [PATCH] Set relocation prefix to the spellcheck plugin + +--- + spellcheck/src/speller.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/spellcheck/src/speller.c b/spellcheck/src/speller.c +index 897dfa28..a342e5b4 100644 +--- a/spellcheck/src/speller.c ++++ b/spellcheck/src/speller.c +@@ -599,6 +599,11 @@ static void log_enchant_version(void) + + void sc_speller_init(void) + { ++ gchar *prefix_dir = g_build_filename(g_getenv("GTK_PATH"), NULL); ++ if (g_file_test(prefix_dir, G_FILE_TEST_IS_DIR)) ++ enchant_set_prefix_dir(prefix_dir); ++ g_free(prefix_dir); ++ + log_enchant_version(); + sc_speller_broker = enchant_broker_init(); + +-- +2.31.1 +
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).