[arch-commits] Commit in gtkspell3/trunk (PKGBUILD enchant-2.patch)
Jan de Groot
jgc at archlinux.org
Wed Nov 22 12:13:22 UTC 2017
Date: Wednesday, November 22, 2017 @ 12:13:21
Author: jgc
Revision: 267944
upgpkg: gtkspell3 3.0.9-2
Added:
gtkspell3/trunk/enchant-2.patch
Modified:
gtkspell3/trunk/PKGBUILD
-----------------+
PKGBUILD | 13 ++++++++++---
enchant-2.patch | 20 ++++++++++++++++++++
2 files changed, 30 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-22 12:12:34 UTC (rev 267943)
+++ PKGBUILD 2017-11-22 12:13:21 UTC (rev 267944)
@@ -5,7 +5,7 @@
pkgname=gtkspell3
pkgver=3.0.9
-pkgrel=1
+pkgrel=2
url="http://gtkspell.sourceforge.net/"
pkgdesc="Provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget"
arch=('x86_64')
@@ -12,9 +12,16 @@
license=('GPL')
depends=('gtk3' 'enchant')
makedepends=('intltool' 'gobject-introspection' 'vala' 'python2')
-source=(https://downloads.sourceforge.net/gtkspell/$pkgname-$pkgver.tar.xz)
-sha256sums=('a4f4a4a2789f7499563e26d96b22d8085222ebe278da47d026b2de782b8b4d26')
+source=(https://downloads.sourceforge.net/gtkspell/$pkgname-$pkgver.tar.xz
+ enchant-2.patch)
+sha256sums=('a4f4a4a2789f7499563e26d96b22d8085222ebe278da47d026b2de782b8b4d26'
+ '17355439e8540e02591e398bc8fd2abfce708157cc116bfd93feab214613cbd3')
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../enchant-2.patch
+}
+
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
Added: enchant-2.patch
===================================================================
--- enchant-2.patch (rev 0)
+++ enchant-2.patch 2017-11-22 12:13:21 UTC (rev 267944)
@@ -0,0 +1,20 @@
+--- gtkspell3-3.0.9/gtkspell/gtkspell.c.orig 2016-08-06 09:43:17.000000000 +0000
++++ gtkspell3-3.0.9/gtkspell/gtkspell.c 2017-11-22 12:07:52.716086700 +0000
+@@ -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);
+ }
+
More information about the arch-commits
mailing list