wok-current annotate psyco/receipt @ rev 11330
Up: htop (1.0)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Wed Nov 23 16:42:08 2011 +0000 (2011-11-23) |
parents | 15950b83bce6 |
children | bf4a09ef1d2e |
rev | line source |
---|---|
pankso@3169 | 1 # SliTaz package receipt. |
pankso@3169 | 2 |
pankso@3169 | 3 PACKAGE="psyco" |
pankso@3169 | 4 VERSION="1.6" |
pankso@3169 | 5 CATEGORY="system-tools" |
pankso@3169 | 6 SHORT_DESC="Module which can massively speed up the execution of any Python code." |
pankso@3169 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@3169 | 8 DEPENDS="python" |
pankso@3169 | 9 BUILD_DEPENDS="python-dev" |
pankso@3169 | 10 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
pankso@3169 | 11 WEB_SITE="http://psyco.sourceforge.net/" |
pankso@3169 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@3169 | 13 |
pankso@3169 | 14 # Rules to configure and make the package. |
pankso@3169 | 15 compile_rules() |
pankso@3169 | 16 { |
pankso@3169 | 17 cd $src |
pascal@6659 | 18 # Fix opcodes for python 2.7 |
pascal@6659 | 19 sed -i -e 's/JUMP_IF_FALSE\([: )]\)/JUMP_IF_FALSE_OR_POP\1/' \ |
pascal@6659 | 20 -e 's/JUMP_IF_TRUE\([: )]\)/JUMP_IF_TRUE_OR_POP\1/' \ |
pascal@6659 | 21 c/Python/pycompiler.c c/mergepoints.c |
pankso@3169 | 22 python setup.py install --root=$PWD/_pkg |
pankso@3169 | 23 } |
pankso@3169 | 24 |
pankso@3169 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3169 | 26 genpkg_rules() |
pankso@3169 | 27 { |
pankso@3169 | 28 mkdir -p $fs/usr |
pankso@3169 | 29 cp -a $_pkg/usr/lib $fs/usr |
pankso@3169 | 30 } |