wok-next diff python-webob/receipt @ rev 20972
Improve Python packages: update, also provide Python3 packages where available
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 22 16:05:26 2018 +0300 (2018-09-22) |
parents | 92698cd69f34 |
children | d5aab818505e |
line diff
1.1 --- a/python-webob/receipt Fri Jul 13 17:30:55 2018 +0300 1.2 +++ b/python-webob/receipt Sat Sep 22 16:05:26 2018 +0300 1.3 @@ -1,24 +1,38 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 +ORIGIN="WebOb" 1.7 PACKAGE="python-webob" 1.8 -VERSION="latest-1.7" 1.9 -CATEGORY="development" 1.10 +VERSION="1.8.2" 1.11 +VERSION17="1.7.4" # python-turbogears require "WebOb<1.8.0,>=1.2" 1.12 +CATEGORY="python" 1.13 SHORT_DESC="WSGI request and response object" 1.14 MAINTAINER="taziden@slitaz.org" 1.15 LICENSE="MIT" 1.16 -WEB_SITE="https://pypi.org/project/WebOb/" 1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.18 +HOST_ARCH="any" 1.19 REPOLOGY="python:webob" 1.20 1.21 -BUILD_DEPENDS="python" 1.22 +BUILD_DEPENDS="python python3" 1.23 +SPLIT="python3-webob:3 \ 1.24 +python-webob17:17 python3-webob17:173" 1.25 1.26 compile_rules() { 1.27 - # python-turbogears require "WebOb<1.8.0,>=1.2" 1.28 - pip install --no-compile --root=$DESTDIR "WebOb<1.8.0,>=1.2" 1.29 + case $SET in 1.30 + '') pip install --no-compile --root=$install $ORIGIN==$VERSION;; 1.31 + 3) pip3 install --no-compile --root=$install $ORIGIN==$VERSION;; 1.32 + 17) pip install --no-compile --root=$install $ORIGIN==$VERSION17;; 1.33 + 173) pip3 install --no-compile --root=$install $ORIGIN==$VERSION17;; 1.34 + esac 1.35 } 1.36 1.37 genpkg_rules() { 1.38 - VERSION=$(sed -n '/^Successfully installed/ s|.*WebOb-||p' $LOGS/$PACKAGE.log) 1.39 + case $PACKAGE in 1.40 + *-webob17) 1.41 + VERSION="$VERSION17" 1.42 + CAT="python|legacy version $VERSION17" 1.43 + ;; 1.44 + esac 1.45 copy @std 1.46 - DEPENDS="python" 1.47 - TAGS="python" 1.48 + py=${PACKAGE%%-*} # python/python3 1.49 + DEPENDS="$py" 1.50 }