wok-next diff python-pyflakes/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents d24f5052ae8c
children
line diff
     1.1 --- a/python-pyflakes/receipt	Wed Aug 22 11:18:36 2018 +0300
     1.2 +++ b/python-pyflakes/receipt	Tue Sep 01 11:04:25 2020 +0000
     1.3 @@ -1,23 +1,38 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="pyflakes"
     1.7  PACKAGE="python-pyflakes"
     1.8 -VERSION="latest"
     1.9 -CATEGORY="development"
    1.10 +VERSION="2.0.0"
    1.11 +VERSION16="1.6.0" # python-flake8 requres 'pyflakes<1.7.0,>=1.5.0'
    1.12 +CATEGORY="python"
    1.13  SHORT_DESC="A simple program which checks Python source files for errors"
    1.14  MAINTAINER="paul@slitaz.org"
    1.15  LICENSE="MIT"
    1.16 -WEB_SITE="https://pypi.org/project/pyflakes/"
    1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.18  HOST_ARCH="any"
    1.19  REPOLOGY="python:pyflakes"
    1.20  
    1.21 -BUILD_DEPENDS="python-dev"
    1.22 +BUILD_DEPENDS="python python3"
    1.23 +SPLIT="python3-pyflakes:3 \
    1.24 +python-pyflakes16:16 python3-pyflakes16:163"
    1.25  
    1.26  compile_rules() {
    1.27 -	pip install --no-compile --root=$DESTDIR pyflakes
    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 +		16)  pip  install --no-compile --root=$install $ORIGIN==$VERSION16;;
    1.32 +		163) pip3 install --no-compile --root=$install $ORIGIN==$VERSION16;;
    1.33 +	esac
    1.34  }
    1.35  
    1.36  genpkg_rules() {
    1.37 -	VERSION=$(sed -n '/^Successfully installed/ s|.*pyflakes-||p' $LOGS/$PACKAGE.log)
    1.38 +	case $PACKAGE in
    1.39 +		*-pyflakes16)
    1.40 +			VERSION="$VERSION16"
    1.41 +			CAT="python|legacy version $VERSION16"
    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  }