wok diff python-psutil/receipt @ rev 16794
Add libjson-dev (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 02 21:12:13 2014 +0200 (2014-07-02) |
parents | 2a5cc8208d36 |
children | 7390f8de9846 |
line diff
1.1 --- a/python-psutil/receipt Sun Oct 20 22:08:25 2013 +0000 1.2 +++ b/python-psutil/receipt Wed Jul 02 21:12:13 2014 +0200 1.3 @@ -10,6 +10,7 @@ 1.4 TARBALL="$SOURCE-$VERSION.tar.gz" 1.5 WEB_SITE="http://code.google.com/p/psutil/" 1.6 WGET_URL="http://psutil.googlecode.com/files/$TARBALL" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 DEPENDS="python" 1.10 BUILD_DEPENDS="python-dev setuptools" 1.11 @@ -17,8 +18,19 @@ 1.12 # Rules to configure and make the package. 1.13 compile_rules() 1.14 { 1.15 - cd $src 1.16 + # Cross compilation hack 1.17 + case "$ARCH" in 1.18 + arm*) 1.19 + mv /usr/bin/i486-slitaz-linux-gcc /tmp && 1.20 + ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ 1.21 + /usr/bin/i486-slitaz-linux-gcc ;; 1.22 + esac && 1.23 python setup.py install --root=$DESTDIR 1.24 + case "$ARCH" in 1.25 + arm*) 1.26 + rm /usr/bin/i486-slitaz-linux-gcc && 1.27 + mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; 1.28 + esac 1.29 } 1.30 1.31 # Rules to gen a SliTaz package suitable for Tazpkg.