From b35f84cd7aa90413aedb2f97a9bf979ab73b1421 Mon Sep 17 00:00:00 2001 From: Christoph Willing Date: Thu, 5 Nov 2015 10:29:29 +0100 Subject: python/py3cairo: Fix building with the newer python. Signed-off-by: Matteo Bernardini --- python/py3cairo/py3cairo.SlackBuild | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'python/py3cairo') diff --git a/python/py3cairo/py3cairo.SlackBuild b/python/py3cairo/py3cairo.SlackBuild index e18a71a2bc..1645b80d8b 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 -- cgit v1.2.3