mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
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.
This commit is contained in:
parent
daf9a7e51b
commit
ab864165f3
1 changed files with 9 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
||||||
# Template file for 'gobject-introspection'
|
# Template file for 'gobject-introspection'
|
||||||
pkgname=gobject-introspection
|
pkgname=gobject-introspection
|
||||||
version=1.64.0
|
version=1.64.0
|
||||||
revision=2
|
revision=3
|
||||||
build_style=meson
|
build_style=meson
|
||||||
pycompile_dirs="usr/lib/${pkgname}/giscanner"
|
pycompile_dirs="usr/lib/${pkgname}/giscanner"
|
||||||
hostmakedepends="flex pkg-config"
|
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"
|
depends="libgirepository-devel python3-Mako python3-Markdown"
|
||||||
short_desc="Introspection system for GObject-based libraries"
|
short_desc="Introspection system for GObject-based libraries"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
|
@ -41,6 +42,12 @@ post_install() {
|
||||||
mv ${DESTDIR}/usr/bin/g-ir-compiler{,.wrapped}
|
mv ${DESTDIR}/usr/bin/g-ir-compiler{,.wrapped}
|
||||||
vbin ${FILESDIR}/g-ir-compiler-wrapper g-ir-compiler
|
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
|
# modify the pkg-config files to respect ${pc_sysrootdir} for variables that are
|
||||||
# meant to be called with 'pkg-config --variable'
|
# meant to be called with 'pkg-config --variable'
|
||||||
vsed -e 's|^g_ir_scanner=.*|g_ir_scanner=${pc_sysrootdir}/${bindir}/g-ir-scanner|g' \
|
vsed -e 's|^g_ir_scanner=.*|g_ir_scanner=${pc_sysrootdir}/${bindir}/g-ir-scanner|g' \
|
||||||
|
|
Loading…
Add table
Reference in a new issue