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:
parent
9f78429293
commit
c8e82afa70
25
srcpkgs/gtkspell3/patches/enchant-2.patch
Normal file
25
srcpkgs/gtkspell3/patches/enchant-2.patch
Normal 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);
|
||||
}
|
||||
|
||||
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user