wok-6.x annotate psyco/receipt @ rev 25096
created recipe for wordgrinder
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 15:13:12 2022 +0100 (2022-06-18) |
parents | 16df76e1fc6a |
children | 7dd01dedad38 |
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 |
pascal@24396 | 16 # What is the latest version available today? |
pascal@24396 | 17 current_version() |
pascal@24396 | 18 { |
pascal@24396 | 19 wget -O - https://sourceforge.net/projects/psyco/files/psyco/ 2>/dev/null | \ |
pascal@24396 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 21 sed '/scope="row/!d;s|.*/psyco/||;s|/.*||;q' |
pascal@24396 | 22 } |
pascal@24396 | 23 |
pankso@3169 | 24 # Rules to configure and make the package. |
pankso@3169 | 25 compile_rules() |
pankso@3169 | 26 { |
al@18077 | 27 # Fix opcodes for python 2.7 |
al@18077 | 28 sed -i -e 's/JUMP_IF_FALSE\([: )]\)/JUMP_IF_FALSE_OR_POP\1/' \ |
al@18077 | 29 -e 's/JUMP_IF_TRUE\([: )]\)/JUMP_IF_TRUE_OR_POP\1/' \ |
pascal@6659 | 30 c/Python/pycompiler.c c/mergepoints.c |
al@18077 | 31 python setup.py install --root=$DESTDIR |
pankso@3169 | 32 } |
pankso@3169 | 33 |
pankso@3169 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3169 | 35 genpkg_rules() |
pankso@3169 | 36 { |
al@18077 | 37 mkdir -p $fs/usr |
al@18077 | 38 cp -a $install/usr/lib $fs/usr |
pankso@3169 | 39 } |