wok-next view psyco/receipt @ rev 20491

More packing...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Mar 13 02:04:32 2018 +0200 (2018-03-13)
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 }