wok-6.x view python-mysql/receipt @ rev 8445
Up: pangomm to 2.26.3.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Feb 06 15:10:47 2011 +0000 (2011-02-06) |
parents | 2a19d6b11178 |
children | 5d9a6e5f6f88 |
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="http://ufpr.dl.sourceforge.net/sourceforge/mysql-python/$TARBALL"
12 DEPENDS="python mysql zlib openssl"
13 BUILD_DEPENDS="python-dev mysql-dev zlib-dev openssl-dev setuptools"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg
20 python setup.py build
21 python setup.py install --root=$PWD/_pkg
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 find $_pkg -name "*.pyc" -exec rm '{}' \;
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 }