wok-next annotate psyco/receipt @ rev 20663
Fix web site for the Shimmer Project themes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 10 22:58:32 2018 +0300 (2018-05-10) |
parents | 16df76e1fc6a |
children | d5aab818505e |
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" |
pankso@3169 | 7 MAINTAINER="pankso@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@18077 | 22 python setup.py install --root=$DESTDIR |
pankso@3169 | 23 } |
pankso@3169 | 24 |
al@20491 | 25 genpkg_rules() { |
al@18077 | 26 mkdir -p $fs/usr |
al@18077 | 27 cp -a $install/usr/lib $fs/usr |
al@20491 | 28 DEPENDS="python" |
pankso@3169 | 29 } |