wok-next diff python-mysql/receipt @ rev 21592
updated dkms (2.1.1.2 -> 2.8.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 24 07:35:54 2020 +0100 (2020-06-24) |
parents | 9b3461bf373c |
children |
line diff
1.1 --- a/python-mysql/receipt Fri Jul 13 13:52:56 2018 +0300 1.2 +++ b/python-mysql/receipt Wed Jun 24 07:35:54 2020 +0100 1.3 @@ -1,40 +1,27 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="MySQL-python" 1.8 PACKAGE="python-mysql" 1.9 -VERSION="1.2.3" 1.10 -CATEGORY="development" 1.11 -SHORT_DESC="A Python interface to MySQL ." 1.12 +VERSION="1.2.5" 1.13 +CATEGORY="python" 1.14 +SHORT_DESC="Python interface to MySQL" 1.15 MAINTAINER="claudinei@slitaz.org" 1.16 LICENSE="GPL" 1.17 -WEB_SITE="http://mysql-python.sourceforge.net/" 1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.19 +#HOST_ARCH 1.20 REPOLOGY="python:mysql-python" 1.21 1.22 -SOURCE="MySQL-python" 1.23 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.24 -WGET_URL="$SF_MIRROR/mysql-python/$TARBALL" 1.25 - 1.26 -DEPENDS="python libmysqlclient zlib openssl" 1.27 BUILD_DEPENDS="python-dev mysql-dev" 1.28 1.29 -# Rules to configure and make the package. 1.30 -compile_rules() 1.31 -{ 1.32 - sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg 1.33 - python setup.py build 1.34 - python setup.py install --root=$DESTDIR 1.35 +# Python packages name should start with "python-", but "python-mysql-python" 1.36 +# is pretty ugly name, so strip it to "python-mysql" 1.37 + 1.38 +compile_rules() { 1.39 + # Python3 based compilation produce error and currently unsupported 1.40 + pip install --no-compile --root=$install $ORIGIN==$VERSION 1.41 } 1.42 1.43 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.44 -genpkg_rules() 1.45 -{ 1.46 - mkdir -p $fs/usr 1.47 - cp -a $install/usr/lib $fs/usr 1.48 +genpkg_rules() { 1.49 + copy @std 1.50 + DEPENDS="python libmysqlclient" 1.51 } 1.52 - 1.53 -# Remove old package. 1.54 -post_install() 1.55 -{ 1.56 - [ ! -d "$1/var/lib/tazpkg/installed/mysql-python" ] || 1.57 - rm -rf "$1/var/lib/tazpkg/installed/mysql-python" 1.58 -} 1.59 -