wok-current annotate python-simplejson/receipt @ rev 21981
updated subversion and subversion-dev (1.9.0 -> 1.12.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Oct 12 10:07:49 2019 +0100 (2019-10-12) |
parents | 9e01bc6321ea |
children | 7cbe6d2c90dc |
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" |
pascal@21582 | 16 BUILD_DEPENDS="python-dev python-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 |
al@18086 | 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 { |
pascal@18730 | 48 [ ! -d "$1/var/lib/tazpkg/installed/simplejson" ] || |
pascal@18730 | 49 rm -rf "$1/var/lib/tazpkg/installed/simplejson" |
pankso@3401 | 50 } |