SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "python-turbogears"

# SliTaz package receipt.

PACKAGE="python-turbogears"
VERSION="1.5.1"
CATEGORY="network"
SHORT_DESC="Python web application framework."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://pypi.org/project/TurboGears/"
REPOLOGY="python:turbogears"

SOURCE="TurboGears"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"

DEPENDS="psycopg python python-cheetah python-cherrypy python-decoratortools
    python-extremes python-formencode python-kid python-paste
    python-pastedeploy python-pastescript python-peak-rules
    python-simplejson sqlobject"
BUILD_DEPENDS="python-dev python-setuptools"

current_version()
{
    wget -O - https://github.com/TurboGears/tg2/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/tg\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
# 1.5.1 removed
#    sed -i -e 's|http://pypi|https://pypi|' -e \
#    's|sys, os|&, ssl\nssl._create_default_https_context = ssl._create_unverified_context|' \
#        tools/tgsetup.py ez_setup.py
#    PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    # Tgsetup dont build TurboGearsKid and friends if there are already
    # installed, so remove python-turbogears before building.
#    if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then
#        yes | tazpkg remove python-turbogears
#    fi
    # Use tgsetup.py to bootstrap installation with all deps. It will
    # build: TurbuGears, TurboCheetah, TurboJson and TurboKid.
#    cd $src/tools
#    DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages"
#    mkdir -p $DESTDIR
#    PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr"

    python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
#    PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    cp -a $install/usr    $fs
#    rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py*
}

6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)