gtkspell3: rebuild against enchant-2.

Closes: #13076 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
maxice8 2018-03-30 16:29:26 -03:00 committed by Jürgen Buchmüller
parent 9f78429293
commit c8e82afa70
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
2 changed files with 34 additions and 4 deletions

View File

@ -0,0 +1,25 @@
Source: Arch Linux
Upstream: Unknown
Reason: Allows compilation with enchant-2
--- gtkspell/gtkspell.c
+++ gtkspell/gtkspell.c
@@ -353,7 +353,7 @@
get_word_extents_from_mark (spell->priv->buffer, &start, &end, spell->priv->mark_click);
word = gtk_text_buffer_get_text (spell->priv->buffer, &start, &end, FALSE);
- enchant_dict_add_to_pwl (spell->priv->speller, word, strlen (word));
+ enchant_dict_add (spell->priv->speller, word, strlen (word));
gtk_spell_checker_recheck_all (spell);
@@ -1246,7 +1246,7 @@
void
gtk_spell_checker_add_to_dictionary (GtkSpellChecker *spell, const gchar *word)
{
- enchant_dict_add_to_pwl (spell->priv->speller, word, strlen (word));
+ enchant_dict_add (spell->priv->speller, word, strlen (word));
gtk_spell_checker_recheck_all (spell);
}

View File

@ -1,19 +1,24 @@
# Template file for 'gtkspell3'
pkgname=gtkspell3
version=3.0.9
revision=2
revision=3
build_options="gir"
build_style=gnu-configure
configure_args="--disable-silent-rules"
hostmakedepends="$(vopt_if gir 'gobject-introspection vala-devel') intltool pkg-config"
makedepends="enchant-devel gtk+3-devel"
hostmakedepends="automake intltool libtool pkg-config
$(vopt_if gir 'gobject-introspection vala-devel')"
makedepends="enchant2-devel gtk+3-devel"
short_desc="Highlighting and replacement of misspelled words"
maintainer="beefcurtains <beefcurtains@voidlinux.eu>"
license="GPL-2"
license="GPL-2.0-or-later"
homepage="http://${pkgname}.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname::-1}/${version}/${pkgname}-${version}.tar.xz"
checksum=a4f4a4a2789f7499563e26d96b22d8085222ebe278da47d026b2de782b8b4d26
pre_configure() {
sed -i 's|enchant|enchant-2|g' configure
}
# Enable gir and vala for non-cross builds
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"