wok-next view psyco/receipt @ rev 21723

busybox: update patches
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:44:52 2020 +0000 (2020-09-01)
parents 2f03cb67a994
children
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="devel@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
23 python -B setup.py install --root=$install
24 }
26 genpkg_rules() {
27 mkdir -p $fs/usr
28 cp -a $install/usr/lib $fs/usr
29 DEPENDS="python"
30 }