mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
python-cairo: use generic python-config wrapper.
This commit is contained in:
parent
a0551e3f7c
commit
c9021716a9
2 changed files with 2 additions and 16 deletions
|
@ -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
|
|
|
@ -5,6 +5,7 @@ revision=4
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
wrksrc="py2cairo-${version}"
|
wrksrc="py2cairo-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
configure_args="PYTHON=python"
|
||||||
hostmakedepends="automake libtool pkg-config which python-devel"
|
hostmakedepends="automake libtool pkg-config which python-devel"
|
||||||
makedepends="cairo-devel python-devel"
|
makedepends="cairo-devel python-devel"
|
||||||
depends="python>=2.7"
|
depends="python>=2.7"
|
||||||
|
@ -20,15 +21,9 @@ checksum=d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
touch ChangeLog
|
touch ChangeLog
|
||||||
NOCONFIGURE=1 autoreconf -fi
|
NOCONFIGURE=1 autoreconf -fi
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# create a python-config wrapper to fake --includes
|
ln -s ${wrksrc}/.xbps/bin/python-config ${wrksrc}
|
||||||
install -m755 ${FILESDIR}/python-config ${wrksrc}
|
|
||||||
export PATH=${wrksrc}:$PATH
|
|
||||||
fi
|
fi
|
||||||
env PYTHON=python ./configure ${configure_args}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python-cairo-devel_package() {
|
python-cairo-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue