gtkhtml: fix cross build
This commit is contained in:
parent
225d4a860b
commit
077e16b0e1
2 changed files with 16 additions and 0 deletions
11
srcpkgs/gtkhtml/patches/fix-test-suite.patch
Normal file
11
srcpkgs/gtkhtml/patches/fix-test-suite.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- gtkhtml/test-suite.c 2013-12-13 22:58:34.000000000 +0100
|
||||
+++ gtkhtml/test-suite.c 2018-03-10 20:06:41.119449731 +0100
|
||||
@@ -545,7 +545,7 @@
|
||||
flow_levels = HTML_CLUEFLOW (HTML_CLUE (HTML_CLUE (e->clue)->head)->head)->levels;
|
||||
|
||||
/* test if levels are OK */
|
||||
- if (!flow_levels || !flow_levels->len == 1 || flow_levels->data[0] != HTML_LIST_TYPE_BLOCKQUOTE_CITE)
|
||||
+ if (!flow_levels || flow_levels->len != 1 || flow_levels->data[0] != HTML_LIST_TYPE_BLOCKQUOTE_CITE)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
|
@ -3,6 +3,7 @@ pkgname=gtkhtml
|
|||
version=4.10.0
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
make_build_args="V=1"
|
||||
hostmakedepends="pkg-config intltool"
|
||||
makedepends="gtk+3-devel enchant-devel ORBit2-devel
|
||||
libsoup-gnome-devel gsettings-desktop-schemas-devel
|
||||
|
@ -15,6 +16,10 @@ license="GPL-2"
|
|||
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||
checksum=ca3b6424fb2c7ac5d9cb8fdafb69318fa2e825c9cf6ed17d1e38d9b29e5606c3
|
||||
|
||||
if [ -n "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" glib-devel"
|
||||
fi
|
||||
|
||||
libgtkhtml_package() {
|
||||
short_desc+=" - runtime libraries"
|
||||
pkg_install() {
|
||||
|
|
Loading…
Reference in a new issue