wok-6.x annotate 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
rev   line source
claudinei@3388 1 # SliTaz package receipt.
claudinei@3388 2
claudinei@3388 3 PACKAGE="python-mysql"
claudinei@3388 4 SOURCE="MySQL-python"
slaxemulator@7722 5 VERSION="1.2.3"
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/"
slaxemulator@9467 11 WGET_URL="$SF_MIRROR/mysql-python/$TARBALL"
slaxemulator@9467 12 DEPENDS="python libmysqlclient zlib openssl"
slaxemulator@9467 13 BUILD_DEPENDS="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
slaxemulator@9467 21 python setup.py install --root=$DESTDIR
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@3388 27 mkdir -p $fs/usr
claudinei@3388 28 cp -a $_pkg/usr/lib $fs/usr
claudinei@3388 29 }
claudinei@3388 30
claudinei@3404 31 # Remove old package.
claudinei@3404 32 post_install()
claudinei@3404 33 {
slaxemulator@7722 34 if [ -d $1/var/lib/tazpkg/installed/mysql-python ]; then
slaxemulator@7722 35 rm -rf $1/var/lib/tazpkg/installed/mysql-python
slaxemulator@7722 36 fi
claudinei@3404 37 }