wok-current view python-mysql/receipt @ rev 9467

Fix receipts that remove lines that removed .pyc and .pyo files. Tazwok does that now.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Apr 03 14:11:25 2011 +0000 (2011-04-03)
parents 6231e84e08de
children 537c950566ea
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"
12 DEPENDS="python libmysqlclient zlib openssl"
13 BUILD_DEPENDS="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=$DESTDIR
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 }
31 # Remove old package.
32 post_install()
33 {
34 if [ -d $1/var/lib/tazpkg/installed/mysql-python ]; then
35 rm -rf $1/var/lib/tazpkg/installed/mysql-python
36 fi
37 }