wok-current diff python-simplejson/receipt @ rev 16535

linux-source: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 28 07:52:49 2014 +0000 (2014-04-28)
parents bf4a09ef1d2e
children 7390f8de9846
line diff
     1.1 --- a/python-simplejson/receipt	Fri Oct 18 22:13:53 2013 +0000
     1.2 +++ b/python-simplejson/receipt	Mon Apr 28 07:52:49 2014 +0000
     1.3 @@ -10,6 +10,7 @@
     1.4  TARBALL="$SOURCE-$VERSION.tar.gz"
     1.5  WEB_SITE="http://pypi.python.org/pypi/simplejson"
     1.6  WGET_URL="http://pypi.python.org/packages/source/s/$SOURCE/$TARBALL"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  DEPENDS="python"
    1.10  BUILD_DEPENDS="python-dev setuptools"
    1.11 @@ -17,9 +18,21 @@
    1.12  # Rules to configure and make the package.
    1.13  compile_rules()
    1.14  {
    1.15 -	cd $src
    1.16 -	python setup.py build
    1.17 -	python setup.py install --root=$DESTDIR
    1.18 +	# Cross compilation hack to avoid using compiler wich build python 
    1.19 +	# itself.
    1.20 +	case "$ARCH" in
    1.21 +		arm*)
    1.22 +			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
    1.23 +			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
    1.24 +				/usr/bin/i486-slitaz-linux-gcc ;;
    1.25 +	esac &&
    1.26 +	python setup.py build  &&
    1.27 +	python setup.py install --root=$DESTDIR &&
    1.28 +	case "$ARCH" in
    1.29 +		arm*) 
    1.30 +			rm /usr/bin/i486-slitaz-linux-gcc &&
    1.31 +			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
    1.32 +	esac
    1.33  }
    1.34  
    1.35  # Rules to gen a SliTaz package suitable for Tazpkg.