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' \