cjs: fix cross build
The cross-built gobject-introspection does not contain the /usr/share/gobject-introspection-1.0/tests directory. If it's missing, copy from the host and always remove it after install to be safe.
This commit is contained in:
parent
208683cd3d
commit
570928df0e
@ -19,10 +19,19 @@ checksum=7dab9615c41d9cb3b2409b2aa6cb9813ef5762f8c62526f54b4b3734079961f6
|
||||
|
||||
pre_configure() {
|
||||
cp ${FILESDIR}/ax_code_coverage.m4 m4/
|
||||
|
||||
if [ ! -d "${XBPS_CROSS_BASE}/usr/share/gobject-introspection-1.0/tests" ]; then
|
||||
# /usr/share/gobject-introspection-1.0/tests missing in cross builds
|
||||
cp -aR /usr/share/gobject-introspection-1.0/tests \
|
||||
${XBPS_CROSS_BASE}/usr/share/gobject-introspection-1.0
|
||||
fi
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
}
|
||||
|
||||
post_install() {
|
||||
# In case it was copied make sure it's removed
|
||||
rm -rf ${XBPS_CROSS_BASE}/usr/share/gobject-introspection-1.0/tests
|
||||
}
|
||||
|
||||
cjs-devel_package() {
|
||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
|
Loading…
x
Reference in New Issue
Block a user