wok-6.x view mysql-python/receipt @ rev 3082
Up: slitaz-configs (3.0)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 15 23:31:04 2009 +0200 (2009-05-15) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="mysql-python"
4 SOURCE="MySQL-python"
5 VERSION="1.2.2"
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/$PACKAGE/$TARBALL"
12 DEPENDS="python mysql zlib openssl"
13 BUILD_DEPENDS="python-dev mysql-dev zlib-dev openssl-dev"
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 mkdir -p $fs/usr
28 cp -a $_pkg/usr/lib $fs/usr
29 }