summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreemor <freemor@freemor.ca>2019-08-05 13:17:51 -0300
committerFreemor <freemor@freemor.ca>2019-08-05 13:17:51 -0300
commit036ce48daca4106f709b5935b03d74fbc44392a1 (patch)
tree9347b94e6cd8604ea32f254ff4ba78f695766d1b
parentad27a2c40fbb1e7db0ccbcd98b28bb57469ce442 (diff)
downloadabslibre-036ce48daca4106f709b5935b03d74fbc44392a1.tar.gz
abslibre-036ce48daca4106f709b5935b03d74fbc44392a1.tar.bz2
abslibre-036ce48daca4106f709b5935b03d74fbc44392a1.zip
Update/Rebuild [pcr/gtkhtml4] to move it to my key. Issue #2405
-rw-r--r--enchant-2.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/enchant-2.patch b/enchant-2.patch
new file mode 100644
index 000000000..88a9d2c82
--- /dev/null
+++ b/enchant-2.patch
@@ -0,0 +1,29 @@
+Description: Switch checks and functions for enchant-2
+ Existing sources check for and expect enchant-1. This patch switched the
+ pkg-config check to check for enchant-2, and updates one function to the
+ enchant-2 version.
+Author: Jonathon Fernyhough <jonathon at_manjaro_dot org>
+
+--- configure.ac 2018-02-24 10:33:32.311420000 +0000
++++ configure.ac 2018-02-24 10:32:33.630608000 +0000
+@@ -140,7 +140,7 @@ AC_SUBST(GAIL_MODULES)
+ dnl **********************************
+ dnl GTKHTML modules
+ dnl **********************************
+-GTKHTML_MODULES="gtk+-3.0 >= gtk_minimum_version enchant >= enchant_minimum_version gsettings-desktop-schemas iso-codes cairo >= cairo_minimum_version"
++GTKHTML_MODULES="gtk+-3.0 >= gtk_minimum_version enchant-2 >= enchant_minimum_version gsettings-desktop-schemas iso-codes cairo >= cairo_minimum_version"
+ PKG_CHECK_MODULES(GTKHTML, $GTKHTML_MODULES)
+ AC_SUBST(GTKHTML_CFLAGS)
+ AC_SUBST(GTKHTML_LIBS)
+
+--- components/editor/gtkhtml-spell-checker.c 2018-02-24 10:36:50.592732000 +0000
++++ components/editor/gtkhtml-spell-checker.c 2018-02-24 10:41:41.450950010 +0000
+@@ -375,7 +375,7 @@ gtkhtml_spell_checker_add_word (GtkhtmlS
+ if ((dict = spell_checker_request_dict (checker)) == NULL)
+ return;
+
+- enchant_dict_add_to_pwl (dict, word, length);
++ enchant_dict_add (dict, word, length);
+ g_signal_emit (G_OBJECT (checker), signals[ADDED], 0, word, length);
+ }
+