wok diff python-sqlalchemy/receipt @ rev 15149

php: fix post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 15 13:25:02 2013 +0000 (2013-08-15)
parents d0fa681cee8d
children bf4a09ef1d2e
line diff
     1.1 --- a/python-sqlalchemy/receipt	Sat Oct 09 17:19:46 2010 +0200
     1.2 +++ b/python-sqlalchemy/receipt	Thu Aug 15 13:25:02 2013 +0000
     1.3 @@ -2,34 +2,27 @@
     1.4  
     1.5  PACKAGE="python-sqlalchemy"
     1.6  SOURCE="SQLAlchemy"
     1.7 -VERSION="0.5.6"
     1.8 +VERSION="0.7.10"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="The Python SQL toolkit and Object Relational Mapper"
    1.11  MAINTAINER="claudinei@slitaz.org"
    1.12  DEPENDS="python"
    1.13 -BUILD_DEPENDS="python python-dev"
    1.14 +BUILD_DEPENDS="wget python-dev"
    1.15  SUGGESTED="python-pysqlite"
    1.16  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.17  WEB_SITE="http://www.sqlalchemy.org"
    1.18 -WGET_URL="$SF_MIRROR/sqlalchemy/$TARBALL"
    1.19 +WGET_URL="https://pypi.python.org/packages/source/S/$SOURCE/$TARBALL"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23  {
    1.24  	cd $src
    1.25 -	python setup.py install --root=$PWD/_pkg
    1.26 +	python setup.py install --root=$DESTDIR
    1.27  }
    1.28  
    1.29  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.30  genpkg_rules()
    1.31  {
    1.32 -	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    1.33 -	for file in `find $_pkg | grep 'pyc$'`; do
    1.34 -		rm $file
    1.35 -	done
    1.36 -	mkdir -p $fs/usr
    1.37 -	rm $_pkg/usr/lib/$PYTHON_LIB/site-packages/sqlalchemy/test/*
    1.38 -	rmdir $_pkg/usr/lib/$PYTHON_LIB/site-packages/sqlalchemy/test
    1.39 -	cp -a $_pkg/usr $fs
    1.40 +	cp -a $install/usr $fs
    1.41  }
    1.42