wok-next view psyco/receipt @ rev 15759
Add Spk (SliTaz Packages Toolset)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jan 05 02:48:00 2014 +0100 (2014-01-05) |
parents | 3b9b0922936a |
children | 16df76e1fc6a |
line source
1 # SliTaz package receipt.
3 PACKAGE="psyco"
4 VERSION="1.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="Module which can massively speed up the execution of any Python code."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
10 WEB_SITE="http://psyco.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="python"
14 BUILD_DEPENDS="python-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 # Fix opcodes for python 2.7
21 sed -i -e 's/JUMP_IF_FALSE\([: )]\)/JUMP_IF_FALSE_OR_POP\1/' \
22 -e 's/JUMP_IF_TRUE\([: )]\)/JUMP_IF_TRUE_OR_POP\1/' \
23 c/Python/pycompiler.c c/mergepoints.c
24 python setup.py install --root=$DESTDIR
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr
31 cp -a $install/usr/lib $fs/usr
32 }