mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
python-gobject2: fix cross build and use generic python-config wrapper.
This commit is contained in:
parent
c9021716a9
commit
a6222ce29e
1 changed files with 3 additions and 10 deletions
|
@ -20,22 +20,15 @@ checksum=fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
NOCONFIGURE=1 autoreconf -fi
|
NOCONFIGURE=1 autoreconf -fi
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# XXX share python-config wrapper for all pkgs.
|
# Fix path to the python-config wrapper.
|
||||||
# create a python-config wrapper to fake --includes
|
sed -e "s,^PYTHON_CONFIG=.*,PYTHON_CONFIG=${wrksrc}/.xbps/bin/python-config,g" -i configure
|
||||||
install -m755 ${XBPS_SRCPKGDIR}/py2cairo/files/python-config ${wrksrc}
|
|
||||||
sed -e 's,^PYTHON_CONFIG=.*,PYTHON_CONFIG=./python-config,g' -i configure
|
|
||||||
fi
|
fi
|
||||||
./configure ${configure_args}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python-gobject2-devel_package() {
|
python-gobject2-devel_package() {
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
depends="libffi-devel libglib-devel python-cairo-devel
|
depends="libffi-devel libglib-devel python-cairo-devel ${sourcepkg}>=${version}_${revision}"
|
||||||
${sourcepkg}>=${version}_${revision}"
|
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pycompile_module="usr/share/pygobject/2.0/codegen"
|
pycompile_module="usr/share/pygobject/2.0/codegen"
|
||||||
replaces="pygobject-devel<3.0.0 pygobject2-devel>=0"
|
replaces="pygobject-devel<3.0.0 pygobject2-devel>=0"
|
||||||
|
|
Loading…
Add table
Reference in a new issue