wok-current annotate 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
rev   line source
claudinei@3394 1 # SliTaz package receipt.
claudinei@3394 2
claudinei@3394 3 PACKAGE="python-simplejson"
claudinei@3394 4 SOURCE="simplejson"
slaxemulator@7548 5 VERSION="2.1.1"
claudinei@3394 6 CATEGORY="development"
claudinei@3394 7 SHORT_DESC="Simple, fast, extensible JSON encoder/decoder for python."
claudinei@3394 8 MAINTAINER="claudinei@slitaz.org"
pascal@15376 9 LICENSE="MIT"
claudinei@3394 10 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3394 11 WEB_SITE="http://pypi.python.org/pypi/simplejson"
claudinei@3394 12 WGET_URL="http://pypi.python.org/packages/source/s/$SOURCE/$TARBALL"
pankso@16506 13 HOST_ARCH="i486 arm"
pascal@15376 14
claudinei@3394 15 DEPENDS="python"
slaxemulator@8362 16 BUILD_DEPENDS="python-dev setuptools"
claudinei@3394 17
claudinei@3394 18 # Rules to configure and make the package.
claudinei@3394 19 compile_rules()
claudinei@3394 20 {
pankso@16506 21 # Cross compilation hack to avoid using compiler wich build python
pankso@16506 22 # itself.
pankso@16506 23 case "$ARCH" in
pankso@16506 24 arm*)
pankso@16506 25 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
pankso@16506 26 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
pankso@16506 27 /usr/bin/i486-slitaz-linux-gcc ;;
pankso@16506 28 esac &&
pankso@16506 29 python setup.py build &&
pankso@16506 30 python setup.py install --root=$DESTDIR &&
pankso@16506 31 case "$ARCH" in
pankso@16506 32 arm*)
pankso@16506 33 rm /usr/bin/i486-slitaz-linux-gcc &&
pankso@16506 34 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
pankso@16506 35 esac
claudinei@3394 36 }
claudinei@3394 37
claudinei@3394 38 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3394 39 genpkg_rules()
claudinei@3394 40 {
claudinei@3394 41 mkdir -p $fs/usr
pascal@15376 42 cp -a $install/usr/lib $fs/usr
claudinei@3394 43 }
claudinei@3394 44
pankso@3401 45 # Remove old package.
pankso@3401 46 post_install()
pankso@3401 47 {
pankso@3401 48 rm -rf $1/var/lib/tazpkg/installed/simplejson
pankso@3401 49 }