mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-05 20:32:58 +02:00
gtkspell: rebuild against enchant-2
Closes: #13075 [via git-merge-pr] Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
016bf478f8
commit
9f78429293
2 changed files with 22 additions and 4 deletions
14
srcpkgs/gtkspell/patches/enchant-2.patch
Normal file
14
srcpkgs/gtkspell/patches/enchant-2.patch
Normal file
|
@ -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);
|
|
@ -1,18 +1,22 @@
|
||||||
# Template file for 'gtkspell'
|
# Template file for 'gtkspell'
|
||||||
pkgname=gtkspell
|
pkgname=gtkspell
|
||||||
version=2.0.16
|
version=2.0.16
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static"
|
||||||
hostmakedepends="pkg-config intltool"
|
hostmakedepends="intltool pkg-config"
|
||||||
makedepends="gtk+-devel enchant-devel"
|
makedepends="enchant2-devel gtk+-devel"
|
||||||
short_desc="Provides word-processor-style highlighting"
|
short_desc="Provides word-processor-style highlighting"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://gtkspell.sourceforge.net/"
|
homepage="http://gtkspell.sourceforge.net/"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1-or-later"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02
|
checksum=8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
sed -i 's/enchant/enchant-2/g' configure
|
||||||
|
}
|
||||||
|
|
||||||
gtkspell-devel_package() {
|
gtkspell-devel_package() {
|
||||||
depends="gtk+-devel ${sourcepkg}>=${version}"
|
depends="gtk+-devel ${sourcepkg}>=${version}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Reference in a new issue