wok-stable annotate python-simplejson/receipt @ rev 8362
Added setuptools to python-simplejson build depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Feb 03 16:52:53 2011 +0000 (2011-02-03) |
parents | cbe9266a164d |
children |
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" |
claudinei@3394 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3394 | 10 WEB_SITE="http://pypi.python.org/pypi/simplejson" |
claudinei@3394 | 11 WGET_URL="http://pypi.python.org/packages/source/s/$SOURCE/$TARBALL" |
claudinei@3394 | 12 DEPENDS="python" |
slaxemulator@8362 | 13 BUILD_DEPENDS="python-dev setuptools" |
claudinei@3394 | 14 |
claudinei@3394 | 15 # Rules to configure and make the package. |
claudinei@3394 | 16 compile_rules() |
claudinei@3394 | 17 { |
claudinei@3394 | 18 cd $src |
claudinei@3394 | 19 python setup.py build |
claudinei@3394 | 20 python setup.py install --root=$PWD/_pkg |
claudinei@3394 | 21 } |
claudinei@3394 | 22 |
claudinei@3394 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3394 | 24 genpkg_rules() |
claudinei@3394 | 25 { |
claudinei@3394 | 26 mkdir -p $fs/usr |
claudinei@3394 | 27 cp -a $_pkg/usr/lib $fs/usr |
claudinei@3394 | 28 } |
claudinei@3394 | 29 |
pankso@3401 | 30 # Remove old package. |
pankso@3401 | 31 post_install() |
pankso@3401 | 32 { |
pankso@3401 | 33 rm -rf $1/var/lib/tazpkg/installed/simplejson |
pankso@3401 | 34 } |