wok-next view psyco/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 16df76e1fc6a |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://psyco.sourceforge.net/"
10 HOST_ARCH="i486" # error: Sorry, non-32-bit platforms are not supported at all.
12 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="python-dev"
17 compile_rules() {
18 # Fix opcodes for python 2.7
19 sed -i -e 's/JUMP_IF_FALSE\([: )]\)/JUMP_IF_FALSE_OR_POP\1/' \
20 -e 's/JUMP_IF_TRUE\([: )]\)/JUMP_IF_TRUE_OR_POP\1/' \
21 c/Python/pycompiler.c c/mergepoints.c
22 python setup.py install --root=$DESTDIR
23 }
25 genpkg_rules() {
26 mkdir -p $fs/usr
27 cp -a $install/usr/lib $fs/usr
28 DEPENDS="python"
29 }