SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "psyco"

# SliTaz package receipt.

PACKAGE="psyco"
VERSION="1.6"
CATEGORY="system-tools"
SHORT_DESC="Module which can massively speed up the execution of any Python code."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION-src.tar.gz"
WEB_SITE="https://psyco.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="python"
BUILD_DEPENDS="python-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/psyco/files/psyco/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/psyco/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # Fix opcodes for python 2.7
    sed -i -e 's/JUMP_IF_FALSE\([: )]\)/JUMP_IF_FALSE_OR_POP\1/' \
        -e 's/JUMP_IF_TRUE\([: )]\)/JUMP_IF_TRUE_OR_POP\1/' \
        c/Python/pycompiler.c c/mergepoints.c
    python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/lib $fs/usr
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)