SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "python-turbogears"

# SliTaz package receipt.

PACKAGE="python-turbogears"
VERSION="1.1.1"
CATEGORY="network"
SHORT_DESC="Python web application framework."
MAINTAINER="pankso@slitaz.org"
SOURCE="TurboGears"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.turbogears.org/"
WGET_URL="http://files.turbogears.org/eggs/$TARBALL"
DEPENDS="python psycopg sqlobject python-kid python-cheetah python-cherrypy \
python-paste python-pastedeploy python-pastescript python-formencode \
python-decoratortools python-extremes python-simplejson"
BUILD_DEPENDS="$DEPENDS python-dev setuptools"

# Rules to configure and make the package.
compile_rules()
{
    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"
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    cp -a $_pkg/usr $fs
    rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py*
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)