python-gobject2: fix cross build and use generic python-config wrapper.

This commit is contained in:
Juan RP 2014-06-19 13:15:04 +02:00
parent c9021716a9
commit a6222ce29e

View File

@ -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"