wok-next annotate psyco/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 2f03cb67a994 |
children |
rev | line source |
---|---|
al@20491 | 1 # SliTaz package receipt v2. |
pankso@3169 | 2 |
pankso@3169 | 3 PACKAGE="psyco" |
pankso@3169 | 4 VERSION="1.6" |
pankso@3169 | 5 CATEGORY="system-tools" |
al@20491 | 6 SHORT_DESC="Module which can massively speed up the execution of any Python code" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15376 | 8 LICENSE="MIT" |
al@20491 | 9 WEB_SITE="http://psyco.sourceforge.net/" |
al@20491 | 10 HOST_ARCH="i486" # error: Sorry, non-32-bit platforms are not supported at all. |
al@20491 | 11 |
pankso@3169 | 12 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
pankso@3169 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@3169 | 14 |
pascal@15376 | 15 BUILD_DEPENDS="python-dev" |
pascal@15376 | 16 |
al@20491 | 17 compile_rules() { |
al@18077 | 18 # Fix opcodes for python 2.7 |
al@18077 | 19 sed -i -e 's/JUMP_IF_FALSE\([: )]\)/JUMP_IF_FALSE_OR_POP\1/' \ |
al@18077 | 20 -e 's/JUMP_IF_TRUE\([: )]\)/JUMP_IF_TRUE_OR_POP\1/' \ |
pascal@6659 | 21 c/Python/pycompiler.c c/mergepoints.c |
al@21020 | 22 |
al@21020 | 23 python -B setup.py install --root=$install |
pankso@3169 | 24 } |
pankso@3169 | 25 |
al@20491 | 26 genpkg_rules() { |
al@18077 | 27 mkdir -p $fs/usr |
al@18077 | 28 cp -a $install/usr/lib $fs/usr |
al@20491 | 29 DEPENDS="python" |
pankso@3169 | 30 } |