summaryrefslogtreecommitdiff
path: root/gtkspell
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2017-11-28 08:42:01 +1100
committerDanny Rawlins <monster.romster@gmail.com>2017-11-28 08:43:27 +1100
commit3d942fa5d432c44e8e1e219be65b975a9e57ba63 (patch)
tree9863e9d62f387116fbcfc241ae9e483f30cf599a /gtkspell
parenta0da8f92811196b015795128fff99d3a6b13b297 (diff)
downloadcontrib-3d942fa5d432c44e8e1e219be65b975a9e57ba63.tar.gz
contrib-3d942fa5d432c44e8e1e219be65b975a9e57ba63.tar.xz
gtkspell: fix for enchant 2.x
Diffstat (limited to 'gtkspell')
-rw-r--r--gtkspell/.md5sum1
-rw-r--r--gtkspell/.signature5
-rw-r--r--gtkspell/Pkgfile7
-rw-r--r--gtkspell/enchant-2.patch11
4 files changed, 20 insertions, 4 deletions
diff --git a/gtkspell/.md5sum b/gtkspell/.md5sum
index 5ade0e2f0..43fb94c15 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 90534053c..96d297e99 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 0c07eb4ea..05988c9f5 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.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
diff --git a/gtkspell/enchant-2.patch b/gtkspell/enchant-2.patch
new file mode 100644
index 000000000..1146605d2
--- /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);
+

Generated by cgit