wok view python-mysql/receipt @ rev 12285
Up: linux (3.2.14) Let play with the kernel :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 15 16:27:00 2012 +0200 (2012-04-15) |
parents | 5d9a6e5f6f88 |
children | fd4f1e692109 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-mysql"
4 SOURCE="MySQL-python"
5 VERSION="1.2.3"
6 CATEGORY="development"
7 SHORT_DESC="A Python interface to MySQL ."
8 MAINTAINER="claudinei@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://mysql-python.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/mysql-python/$TARBALL"
13 DEPENDS="python libmysqlclient zlib openssl"
14 BUILD_DEPENDS="setuptools mysql-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg
21 python setup.py build
22 python setup.py install --root=$DESTDIR
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr
29 cp -a $_pkg/usr/lib $fs/usr
30 }
32 # Remove old package.
33 post_install()
34 {
35 if [ -d $1/var/lib/tazpkg/installed/mysql-python ]; then
36 rm -rf $1/var/lib/tazpkg/installed/mysql-python
37 fi
38 }