aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@iinet.net.au>2015-11-05 10:29:29 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-07 10:33:26 +0700
commitb35f84cd7aa90413aedb2f97a9bf979ab73b1421 (patch)
treef391953c1f8dad08f5cf219b3b615f8da1b98ace /python
parent3bf27b72c31c61a68c974c6f455909dbc3e00f30 (diff)
python/py3cairo: Fix building with the newer python.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/py3cairo/py3cairo.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/python/py3cairo/py3cairo.SlackBuild b/python/py3cairo/py3cairo.SlackBuild
index e18a71a2bc0b..1645b80d8b10 100644
--- a/python/py3cairo/py3cairo.SlackBuild
+++ b/python/py3cairo/py3cairo.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=py3cairo
SRCNAM=pycairo
VERSION=${VERSION:-1.10.0}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -57,6 +57,8 @@ else
LIBDIRSUFFIX=""
fi
+export PYTHON=python3
+
set -e
rm -rf $PKG
@@ -73,7 +75,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/pycairo-1.10.0-waf_unpack-1.patch
-wafdir=$(python3 ./waf unpack)
+wafdir=$(./waf unpack)
pushd $wafdir
patch -p1 < $CWD/pycairo-1.10.0-waf_python_3_4-1.patch
popd
@@ -82,7 +84,7 @@ unset wafdir
PYTHON="/usr/bin/python3" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-python3 ./waf configure \
+./waf configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -90,8 +92,8 @@ python3 ./waf configure \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION
-python3 ./waf build
-DESTDIR=$PKG python3 ./waf install
+./waf build
+DESTDIR=$PKG ./waf install
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true