wok-next annotate python-simplejson/receipt @ rev 6274
Up: rapidsvn to 0.12.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Sep 15 11:00:28 2010 +0000 (2010-09-15) |
parents | a5018f0d3122 |
children | cbe9266a164d |
rev | line source |
---|---|
claudinei@3394 | 1 # SliTaz package receipt. |
claudinei@3394 | 2 |
claudinei@3394 | 3 PACKAGE="python-simplejson" |
claudinei@3394 | 4 SOURCE="simplejson" |
claudinei@3394 | 5 VERSION="2.0.9" |
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" |
claudinei@3394 | 13 BUILD_DEPENDS="python-dev" |
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 } |