wok-next diff python-pycodestyle/receipt @ rev 21670
updated gaupol (1.4.1 -> 1.8)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 27 21:30:44 2020 +0100 (2020-06-27) |
parents | d24f5052ae8c |
children |
line diff
1.1 --- a/python-pycodestyle/receipt Wed Aug 22 11:18:36 2018 +0300 1.2 +++ b/python-pycodestyle/receipt Sat Jun 27 21:30:44 2020 +0100 1.3 @@ -1,23 +1,38 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 +ORIGIN="pycodestyle" 1.7 PACKAGE="python-pycodestyle" 1.8 -VERSION="latest" 1.9 -CATEGORY="development" 1.10 +VERSION="2.4.0" 1.11 +VERSION23="2.3.1" # python-flake8 requres 'pycodestyle<2.4.0,>=2.0.0' 1.12 +CATEGORY="python" 1.13 SHORT_DESC="Python style guide checker" 1.14 MAINTAINER="al.bobylev@gmail.com" 1.15 LICENSE="MIT" 1.16 -WEB_SITE="https://pypi.org/project/pycodestyle/" 1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.18 HOST_ARCH="any" 1.19 REPOLOGY="python:pycodestyle" 1.20 1.21 -BUILD_DEPENDS="python" 1.22 +BUILD_DEPENDS="python python3" 1.23 +SPLIT="python3-pycodestyle:3 \ 1.24 +python-pycodestyle23:23 python3-pycodestyle23:233" 1.25 1.26 compile_rules() { 1.27 - pip install --no-compile --root=$DESTDIR pycodestyle 1.28 + case $SET in 1.29 + '') pip install --no-compile --root=$install $ORIGIN==$VERSION;; 1.30 + 3) pip3 install --no-compile --root=$install $ORIGIN==$VERSION;; 1.31 + 23) pip install --no-compile --root=$install $ORIGIN==$VERSION23;; 1.32 + 233) pip3 install --no-compile --root=$install $ORIGIN==$VERSION23;; 1.33 + esac 1.34 } 1.35 1.36 genpkg_rules() { 1.37 - VERSION=$(sed -n '/^Successfully installed/ s|.*pycodestyle-||p' $LOGS/$PACKAGE.log) 1.38 + case $PACKAGE in 1.39 + *-pycodestyle23) 1.40 + VERSION="$VERSION23" 1.41 + CAT="python|legacy version $VERSION23" 1.42 + ;; 1.43 + esac 1.44 copy @std 1.45 - DEPENDS="python" 1.46 + py=${PACKAGE%%-*} # python/python3 1.47 + DEPENDS="$py" 1.48 }