From 9f784292933dd3ad2f5a83aa160b3700356cf8a9 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 30 Mar 2018 16:34:34 -0300 Subject: [PATCH] gtkspell: rebuild against enchant-2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #13075 [via git-merge-pr] Signed-off-by: Jürgen Buchmüller --- srcpkgs/gtkspell/patches/enchant-2.patch | 14 ++++++++++++++ srcpkgs/gtkspell/template | 12 ++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/gtkspell/patches/enchant-2.patch diff --git a/srcpkgs/gtkspell/patches/enchant-2.patch b/srcpkgs/gtkspell/patches/enchant-2.patch new file mode 100644 index 00000000000..e36159ed0c4 --- /dev/null +++ b/srcpkgs/gtkspell/patches/enchant-2.patch @@ -0,0 +1,14 @@ +Source: Arch Linux +Upstream: Unknown +Reason: Fixes compilation with enchant-2 + +--- gtkspell/gtkspell.c ++++ gtkspell/gtkspell.c +@@ -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); diff --git a/srcpkgs/gtkspell/template b/srcpkgs/gtkspell/template index e452e6e58f1..d223cef87b3 100644 --- a/srcpkgs/gtkspell/template +++ b/srcpkgs/gtkspell/template @@ -1,18 +1,22 @@ # Template file for 'gtkspell' pkgname=gtkspell version=2.0.16 -revision=3 +revision=4 build_style=gnu-configure configure_args="--disable-static" -hostmakedepends="pkg-config intltool" -makedepends="gtk+-devel enchant-devel" +hostmakedepends="intltool pkg-config" +makedepends="enchant2-devel gtk+-devel" short_desc="Provides word-processor-style highlighting" maintainer="Juan RP " homepage="http://gtkspell.sourceforge.net/" -license="LGPL-2.1" +license="LGPL-2.1-or-later" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" checksum=8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02 +pre_configure() { + sed -i 's/enchant/enchant-2/g' configure +} + gtkspell-devel_package() { depends="gtk+-devel ${sourcepkg}>=${version}" short_desc+=" - development files"