gobject-introspection: really fix tests install

Do what the tests/meson.build would have done. It is not run when
cross compiling, thus copy the files listed there to their target
directory usr/share/gobject-introspection-1.0/tests, omitting the
subdirectories where they come from.
This commit is contained in:
Jürgen Buchmüller 2020-03-25 01:08:47 +01:00
parent 088380d350
commit 43be630059

View file

@ -1,7 +1,7 @@
# Template file for 'gobject-introspection'
pkgname=gobject-introspection
version=1.64.0
revision=3
revision=4
build_style=meson
pycompile_dirs="usr/lib/${pkgname}/giscanner"
hostmakedepends="flex pkg-config"
@ -45,7 +45,11 @@ post_install() {
# 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/
for f in scanner/annotation.? scanner/drawable.? scanner/foo.? \
scanner/regress.? scanner/utility.? scanner/warnlib.? \
gimarshallingtests.? gitestmacros.h; do
vcopy tests/$f usr/share/gobject-introspection-1.0
done
fi
# modify the pkg-config files to respect ${pc_sysrootdir} for variables that are