wok-next diff python-tornado/receipt @ rev 21013
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Oct 14 05:29:23 2018 +0300 (2018-10-14) |
parents | 8b5b2a6d07b8 |
children |
line diff
1.1 --- a/python-tornado/receipt Fri Sep 14 01:56:52 2018 +0300 1.2 +++ b/python-tornado/receipt Sun Oct 14 05:29:23 2018 +0300 1.3 @@ -1,25 +1,34 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 +ORIGIN="tornado" 1.7 PACKAGE="python-tornado" 1.8 -ORIGIN="tornado" 1.9 -VERSION="latest" 1.10 -CATEGORY="development" 1.11 +VERSION="5.1.1" 1.12 +CATEGORY="python" 1.13 SHORT_DESC="A web framework and asynchronous networking library" 1.14 MAINTAINER="pascal.bellard@slitaz.org" 1.15 LICENSE="Apache" 1.16 -WEB_SITE="http://www.tornadoweb.org/" 1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.18 +HOST_ARCH="any" 1.19 REPOLOGY="python:tornado" 1.20 1.21 -BUILD_DEPENDS="python python-futures python-six python-singledispatch \ 1.22 -python-backports_abc" 1.23 +BUILD_DEPENDS="python python-backports_abc python-futures \ 1.24 +python-singledispatch \ 1.25 +python3" 1.26 +SPLIT="${PACKAGE/python/python3}:3" 1.27 1.28 compile_rules() { 1.29 - pip install --no-compile --root=$DESTDIR $ORIGIN 1.30 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.31 } 1.32 1.33 genpkg_rules() { 1.34 - VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log) 1.35 copy @std 1.36 - DEPENDS="python python-futures python-six python-singledispatch \ 1.37 - python-backports_abc" 1.38 + py=${PACKAGE%%-*} # python/python3 1.39 + case $PACKAGE in 1.40 + python-*) 1.41 + DEPENDS="$py $py-backports_abc $py-futures $py-singledispatch" 1.42 + ;; 1.43 + python3-*) 1.44 + DEPENDS="$py" 1.45 + ;; 1.46 + esac 1.47 }