wok-stable annotate python-sqlalchemy/receipt @ rev 12232

Up:ocsinventory-server (2.0.4)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Apr 09 12:02:02 2012 +0200 (2012-04-09)
parents 5921dc28d8c6
children
rev   line source
claudinei@3826 1 # SliTaz package receipt.
claudinei@3826 2
claudinei@3826 3 PACKAGE="python-sqlalchemy"
claudinei@3826 4 SOURCE="SQLAlchemy"
claudinei@4673 5 VERSION="0.5.6"
claudinei@3826 6 CATEGORY="development"
claudinei@3826 7 SHORT_DESC="The Python SQL toolkit and Object Relational Mapper"
claudinei@3826 8 MAINTAINER="claudinei@slitaz.org"
claudinei@3826 9 DEPENDS="python"
claudinei@3826 10 BUILD_DEPENDS="python python-dev"
claudinei@3826 11 SUGGESTED="python-pysqlite"
claudinei@3826 12 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3826 13 WEB_SITE="http://www.sqlalchemy.org"
claudinei@3826 14 WGET_URL="$SF_MIRROR/sqlalchemy/$TARBALL"
claudinei@3826 15
claudinei@3826 16 # Rules to configure and make the package.
claudinei@3826 17 compile_rules()
claudinei@3826 18 {
claudinei@3826 19 cd $src
claudinei@3826 20 python setup.py install --root=$PWD/_pkg
claudinei@3826 21 }
claudinei@3826 22
claudinei@3826 23 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3826 24 genpkg_rules()
claudinei@3826 25 {
pascal@6594 26 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
claudinei@3826 27 for file in `find $_pkg | grep 'pyc$'`; do
claudinei@3826 28 rm $file
claudinei@3826 29 done
claudinei@3826 30 mkdir -p $fs/usr
pascal@6592 31 rm $_pkg/usr/lib/$PYTHON_LIB/site-packages/sqlalchemy/test/*
pascal@6592 32 rmdir $_pkg/usr/lib/$PYTHON_LIB/site-packages/sqlalchemy/test
claudinei@3826 33 cp -a $_pkg/usr $fs
claudinei@3826 34 }
claudinei@3826 35