python-cairo: use generic python-config wrapper.

This commit is contained in:
Juan RP 2014-06-19 13:14:45 +02:00
parent a0551e3f7c
commit c9021716a9
2 changed files with 2 additions and 16 deletions

View File

@ -1,9 +0,0 @@
#!/bin/sh
# python wrapper for cross compilation in xbps
# we simply fake the output of --includes with the cross prefix.
if [ "$1" = "--includes" ]; then
echo "-I${XBPS_CROSS_BASE}/usr/include/python2.7"
fi
exit 0

View File

@ -5,6 +5,7 @@ revision=4
lib32disabled=yes
wrksrc="py2cairo-${version}"
build_style=gnu-configure
configure_args="PYTHON=python"
hostmakedepends="automake libtool pkg-config which python-devel"
makedepends="cairo-devel python-devel"
depends="python>=2.7"
@ -20,15 +21,9 @@ checksum=d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431
pre_configure() {
touch ChangeLog
NOCONFIGURE=1 autoreconf -fi
}
do_configure() {
if [ "$CROSS_BUILD" ]; then
# create a python-config wrapper to fake --includes
install -m755 ${FILESDIR}/python-config ${wrksrc}
export PATH=${wrksrc}:$PATH
ln -s ${wrksrc}/.xbps/bin/python-config ${wrksrc}
fi
env PYTHON=python ./configure ${configure_args}
}
python-cairo-devel_package() {