mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python3-gobject: fix cross
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
bc74fec9e0
commit
daf9a7e51b
1 changed files with 14 additions and 1 deletions
|
@ -7,7 +7,7 @@ build_style=meson
|
||||||
build_helper="gir"
|
build_helper="gir"
|
||||||
configure_args="-Dpython=python${py3_ver}"
|
configure_args="-Dpython=python${py3_ver}"
|
||||||
pycompile_module="gi pygtkcompat"
|
pycompile_module="gi pygtkcompat"
|
||||||
hostmakedepends="pkg-config python3 python3-MarkupSafe"
|
hostmakedepends="gobject-introspection pkg-config python3 python3-MarkupSafe"
|
||||||
makedepends="libglib-devel python3-cairo-devel python3-devel"
|
makedepends="libglib-devel python3-cairo-devel python3-devel"
|
||||||
depends="gir-freedesktop python3-cairo"
|
depends="gir-freedesktop python3-cairo"
|
||||||
short_desc="Python3 bindings for GObject"
|
short_desc="Python3 bindings for GObject"
|
||||||
|
@ -17,6 +17,19 @@ homepage="https://pygobject.readthedocs.io/"
|
||||||
distfiles="${GNOME_SITE}/pygobject/${version%.*}/pygobject-${version}.tar.xz"
|
distfiles="${GNOME_SITE}/pygobject/${version%.*}/pygobject-${version}.tar.xz"
|
||||||
checksum=c39ca2a28364b57fa00549c6e836346031e6b886c3ceabfd8ab4b4fed0a83611
|
checksum=c39ca2a28364b57fa00549c6e836346031e6b886c3ceabfd8ab4b4fed0a83611
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
if [ ! -s "${XBPS_CROSS_BASE}/usr/share/gobject-introspection-1.0/tests/gitestmacros.h" ]; 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
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
# In case it was copied make sure it's removed
|
||||||
|
rm -rf ${XBPS_CROSS_BASE}/usr/share/gobject-introspection-1.0/tests
|
||||||
|
}
|
||||||
|
|
||||||
python3-gobject-devel_package() {
|
python3-gobject-devel_package() {
|
||||||
depends="libgirepository-devel python3-cairo-devel
|
depends="libgirepository-devel python3-cairo-devel
|
||||||
libglib-devel libffi-devel
|
libglib-devel libffi-devel
|
||||||
|
|
Loading…
Add table
Reference in a new issue