wok annotate python-mysql/receipt @ rev 21582
Use python-setuptools as bdeps (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 19 19:45:04 2019 +0200 (2019-05-19) |
parents | 9e01bc6321ea |
children | 080c1dff8494 |
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" |
pascal@15378 | 9 LICENSE="GPL" |
claudinei@3388 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3388 | 11 WEB_SITE="http://mysql-python.sourceforge.net/" |
slaxemulator@9467 | 12 WGET_URL="$SF_MIRROR/mysql-python/$TARBALL" |
pankso@9855 | 13 |
slaxemulator@9467 | 14 DEPENDS="python libmysqlclient zlib openssl" |
pascal@21582 | 15 BUILD_DEPENDS="python-dev python-setuptools mysql-dev" |
claudinei@3388 | 16 |
claudinei@3388 | 17 # Rules to configure and make the package. |
claudinei@3388 | 18 compile_rules() |
claudinei@3388 | 19 { |
claudinei@3388 | 20 sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg |
claudinei@3388 | 21 python setup.py build |
slaxemulator@9467 | 22 python setup.py install --root=$DESTDIR |
claudinei@3388 | 23 } |
claudinei@3388 | 24 |
claudinei@3388 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3388 | 26 genpkg_rules() |
claudinei@3388 | 27 { |
claudinei@3388 | 28 mkdir -p $fs/usr |
pascal@15378 | 29 cp -a $install/usr/lib $fs/usr |
claudinei@3388 | 30 } |
claudinei@3388 | 31 |
claudinei@3404 | 32 # Remove old package. |
claudinei@3404 | 33 post_install() |
claudinei@3404 | 34 { |
pascal@18730 | 35 [ ! -d "$1/var/lib/tazpkg/installed/mysql-python" ] || |
pascal@18730 | 36 rm -rf "$1/var/lib/tazpkg/installed/mysql-python" |
claudinei@3404 | 37 } |
al@18077 | 38 |