wok-6.x annotate psyco/receipt @ rev 22522
updated avfs and avfs-dev (1.0.6 -> 1.1.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 02 11:01:35 2020 +0100 (2020-01-02) |
parents | bf4a09ef1d2e |
children | 080c1dff8494 |
rev | line source |
---|---|
pankso@3169 | 1 # SliTaz package receipt. |
pankso@3169 | 2 |
pankso@3169 | 3 PACKAGE="psyco" |
pankso@3169 | 4 VERSION="1.6" |
pankso@3169 | 5 CATEGORY="system-tools" |
pankso@3169 | 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" |
pankso@3169 | 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
pankso@3169 | 10 WEB_SITE="http://psyco.sourceforge.net/" |
pankso@3169 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@3169 | 12 |
pascal@15376 | 13 DEPENDS="python" |
pascal@15376 | 14 BUILD_DEPENDS="python-dev" |
pascal@15376 | 15 |
pankso@3169 | 16 # Rules to configure and make the package. |
pankso@3169 | 17 compile_rules() |
pankso@3169 | 18 { |
al@18077 | 19 # Fix opcodes for python 2.7 |
al@18077 | 20 sed -i -e 's/JUMP_IF_FALSE\([: )]\)/JUMP_IF_FALSE_OR_POP\1/' \ |
al@18077 | 21 -e 's/JUMP_IF_TRUE\([: )]\)/JUMP_IF_TRUE_OR_POP\1/' \ |
pascal@6659 | 22 c/Python/pycompiler.c c/mergepoints.c |
al@18077 | 23 python setup.py install --root=$DESTDIR |
pankso@3169 | 24 } |
pankso@3169 | 25 |
pankso@3169 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3169 | 27 genpkg_rules() |
pankso@3169 | 28 { |
al@18077 | 29 mkdir -p $fs/usr |
al@18077 | 30 cp -a $install/usr/lib $fs/usr |
pankso@3169 | 31 } |