ports/contrib (3.3): gtkspell: fix for enchant 2.x
commit 3d942fa5d432c44e8e1e219be65b975a9e57ba63 Author: Danny Rawlins <monster.romster@gmail.com> Date: Tue Nov 28 08:42:01 2017 +1100 gtkspell: fix for enchant 2.x diff --git a/gtkspell/.md5sum b/gtkspell/.md5sum index 5ade0e2f..43fb94c1 100644 --- a/gtkspell/.md5sum +++ b/gtkspell/.md5sum @@ -1 +1,2 @@ +08bc50960521fca03383285b4d781239 enchant-2.patch f75dcc9338f182c571b321d37c606a94 gtkspell-2.0.16.tar.gz diff --git a/gtkspell/.signature b/gtkspell/.signature index 90534053..96d297e9 100644 --- a/gtkspell/.signature +++ b/gtkspell/.signature @@ -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 diff --git a/gtkspell/Pkgfile b/gtkspell/Pkgfile index 0c07eb4e..05988c9f 100644 --- a/gtkspell/Pkgfile +++ b/gtkspell/Pkgfile @@ -6,8 +6,9 @@ name=gtkspell version=2.0.16 -release=1 -source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar....) +release=2 +source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar.... + 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 diff --git a/gtkspell/enchant-2.patch b/gtkspell/enchant-2.patch new file mode 100644 index 00000000..1146605d --- /dev/null +++ b/gtkspell/enchant-2.patch @@ -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); +
participants (1)
-
crux@crux.nu