wok-next view psyco/receipt @ rev 21131

Update fdupes (1.6.1), jdupes (1.11.1), paper-icon-theme (1.5.0)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 19 14:59:09 2019 +0200 (2019-01-19)
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 }