gtkspell: fix for enchant 2.x
This commit is contained in:
parent
a0da8f9281
commit
3d942fa5d4
@ -1 +1,2 @@
|
||||
08bc50960521fca03383285b4d781239 enchant-2.patch
|
||||
f75dcc9338f182c571b321d37c606a94 gtkspell-2.0.16.tar.gz
|
||||
|
@ -1,5 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3489E1atXPRe5d7xz4ab3BeX2hGZnPBg/waxNWZta9oAw+QLZ2sff5yZ7Xezzz/31Tb5ygPf90Vk+gLuBADHtAQ=
|
||||
SHA256 (Pkgfile) = 58f6bbf49d8b73b7af6630d8e59f124da7b6ec4423a27415642d966c10b0f58b
|
||||
RWSagIOpLGJF39nt/RuN7NRGmwGuprgmyTm2+TJ8fxn51YT5Jk8CO5kz9+qlP/3IB+dEveym/plFgeq0QEx+wAHPz/gkmuNdiAc=
|
||||
SHA256 (Pkgfile) = 9c774bce1d1705a8beb01de108c57993ba58c881d86f23fe46cd32807c61d1a0
|
||||
SHA256 (.footprint) = 05ecfb3dce58d3587abbd43ed2027c15abb23789f52892c465af466cd2e5c46e
|
||||
SHA256 (gtkspell-2.0.16.tar.gz) = 8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02
|
||||
SHA256 (enchant-2.patch) = edeecf8e1cb9c524fdf800026c2b9c91c60faba637185302167909dd234453e9
|
||||
|
@ -6,8 +6,9 @@
|
||||
|
||||
name=gtkspell
|
||||
version=2.0.16
|
||||
release=1
|
||||
source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar.gz)
|
||||
release=2
|
||||
source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar.gz
|
||||
enchant-2.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
@ -20,6 +21,8 @@ build() {
|
||||
|
||||
sed -i -e 's/SUBDIRS = gtkspell examples docs po/SUBDIRS = gtkspell examples po/' Makefile.in
|
||||
|
||||
patch -p1 -i $SRC/enchant-2.patch
|
||||
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
11
gtkspell/enchant-2.patch
Normal file
11
gtkspell/enchant-2.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- gtkspell-2.0.16/gtkspell/gtkspell.c.orig 2009-10-09 19:01:47.000000000 +0000
|
||||
+++ gtkspell-2.0.16/gtkspell/gtkspell.c 2017-11-22 12:02:07.638601094 +0000
|
||||
@@ -277,7 +277,7 @@
|
||||
get_word_extents_from_mark(spell->buffer, &start, &end, spell->mark_click);
|
||||
word = gtk_text_buffer_get_text(spell->buffer, &start, &end, FALSE);
|
||||
|
||||
- enchant_dict_add_to_pwl( spell->speller, word, strlen(word));
|
||||
+ enchant_dict_add( spell->speller, word, strlen(word));
|
||||
|
||||
gtkspell_recheck_all(spell);
|
||||
|
Loading…
Reference in New Issue
Block a user