wok annotate python-mysql/receipt @ rev 7100
Add grep
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Wed Nov 03 10:07:25 2010 +0000 (2010-11-03) |
parents | ad73f7efcc3d |
children | 6231e84e08de |
rev | line source |
---|---|
claudinei@3388 | 1 # SliTaz package receipt. |
claudinei@3388 | 2 |
claudinei@3388 | 3 PACKAGE="python-mysql" |
claudinei@3388 | 4 SOURCE="MySQL-python" |
claudinei@4671 | 5 VERSION="1.2.3c1" |
claudinei@3388 | 6 CATEGORY="development" |
claudinei@3388 | 7 SHORT_DESC="A Python interface to MySQL ." |
claudinei@3388 | 8 MAINTAINER="claudinei@slitaz.org" |
claudinei@3388 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3388 | 10 WEB_SITE="http://mysql-python.sourceforge.net/" |
claudinei@3388 | 11 WGET_URL="http://ufpr.dl.sourceforge.net/sourceforge/mysql-python/$TARBALL" |
claudinei@3388 | 12 DEPENDS="python mysql zlib openssl" |
claudinei@4671 | 13 BUILD_DEPENDS="python-dev mysql-dev zlib-dev openssl-dev setuptools" |
claudinei@3388 | 14 |
claudinei@3388 | 15 # Rules to configure and make the package. |
claudinei@3388 | 16 compile_rules() |
claudinei@3388 | 17 { |
claudinei@3388 | 18 cd $src |
claudinei@3388 | 19 sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg |
claudinei@3388 | 20 python setup.py build |
claudinei@3388 | 21 python setup.py install --root=$PWD/_pkg |
claudinei@3388 | 22 } |
claudinei@3388 | 23 |
claudinei@3388 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3388 | 25 genpkg_rules() |
claudinei@3388 | 26 { |
claudinei@4671 | 27 find $_pkg -name "*.pyc" -exec rm '{}' \; |
claudinei@3388 | 28 mkdir -p $fs/usr |
claudinei@3388 | 29 cp -a $_pkg/usr/lib $fs/usr |
claudinei@3388 | 30 } |
claudinei@3388 | 31 |
claudinei@3404 | 32 # Remove old package. |
claudinei@3404 | 33 post_install() |
claudinei@3404 | 34 { |
claudinei@3404 | 35 rm -rf $1/var/lib/tazpkg/installed/mysql-python |
claudinei@3404 | 36 } |