diff --git a/srcpkgs/python-gobject2/template b/srcpkgs/python-gobject2/template index 508972009d5..420354e75c6 100644 --- a/srcpkgs/python-gobject2/template +++ b/srcpkgs/python-gobject2/template @@ -20,22 +20,15 @@ checksum=fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8 pre_configure() { NOCONFIGURE=1 autoreconf -fi -} - -do_configure() { if [ "$CROSS_BUILD" ]; then - # XXX share python-config wrapper for all pkgs. - # create a python-config wrapper to fake --includes - install -m755 ${XBPS_SRCPKGDIR}/py2cairo/files/python-config ${wrksrc} - sed -e 's,^PYTHON_CONFIG=.*,PYTHON_CONFIG=./python-config,g' -i configure + # Fix path to the python-config wrapper. + sed -e "s,^PYTHON_CONFIG=.*,PYTHON_CONFIG=${wrksrc}/.xbps/bin/python-config,g" -i configure fi - ./configure ${configure_args} } python-gobject2-devel_package() { lib32disabled=yes - depends="libffi-devel libglib-devel python-cairo-devel - ${sourcepkg}>=${version}_${revision}" + depends="libffi-devel libglib-devel python-cairo-devel ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pycompile_module="usr/share/pygobject/2.0/codegen" replaces="pygobject-devel<3.0.0 pygobject2-devel>=0"