From ab864165f37861a33d14ac81e23fea62be0f3e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 25 Mar 2020 00:44:21 +0100 Subject: [PATCH] gobject-introspection: install tests for cross When cross building gobject-introspection the directory /usr/share/gobject-introspection-1.0/tests is not installed. Copy it there from ${wrksrc}/tests in the post_install() stage. --- srcpkgs/gobject-introspection/template | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/srcpkgs/gobject-introspection/template b/srcpkgs/gobject-introspection/template index 7ab816e1e6d..fded42b243a 100644 --- a/srcpkgs/gobject-introspection/template +++ b/srcpkgs/gobject-introspection/template @@ -1,11 +1,12 @@ # Template file for 'gobject-introspection' pkgname=gobject-introspection version=1.64.0 -revision=2 +revision=3 build_style=meson pycompile_dirs="usr/lib/${pkgname}/giscanner" hostmakedepends="flex pkg-config" -makedepends="cairo-devel libffi-devel libglib-devel libxml2-devel python3-devel python3-Mako python3-Markdown" +makedepends="cairo-devel libffi-devel libglib-devel libxml2-devel + python3-devel python3-Mako python3-Markdown" depends="libgirepository-devel python3-Mako python3-Markdown" short_desc="Introspection system for GObject-based libraries" maintainer="Enno Boland " @@ -41,6 +42,12 @@ post_install() { mv ${DESTDIR}/usr/bin/g-ir-compiler{,.wrapped} vbin ${FILESDIR}/g-ir-compiler-wrapper g-ir-compiler + # For cross builds copy the not installed tests subdirectory + if [ "$CROSS_BUILD" ]; then + vmkdir usr/share/gobject-introspection-1.0 + cp -aR ${wrksrc}/tests ${DESTDIR}/usr/share/gobject-introspection-1.0/ + fi + # modify the pkg-config files to respect ${pc_sysrootdir} for variables that are # meant to be called with 'pkg-config --variable' vsed -e 's|^g_ir_scanner=.*|g_ir_scanner=${pc_sysrootdir}/${bindir}/g-ir-scanner|g' \