wok-next view psyco/receipt @ rev 21627

updated enet (1.2.1 -> 1.3.15)
author Hans-G?nter Theisgen
date Thu Jun 25 16:07:08 2020 +0100 (2020-06-25)
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 }