wok-next diff python-flake8/receipt @ rev 21550

updated childsplay (3.3 -> 3.4)
author Hans-G?nter Theisgen
date Mon Jun 22 10:26:12 2020 +0100 (2020-06-22)
parents d24f5052ae8c
children
line diff
     1.1 --- a/python-flake8/receipt	Wed Aug 22 11:18:36 2018 +0300
     1.2 +++ b/python-flake8/receipt	Mon Jun 22 10:26:12 2020 +0100
     1.3 @@ -1,25 +1,35 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="flake8"
     1.7  PACKAGE="python-flake8"
     1.8 -VERSION="latest"
     1.9 -CATEGORY="development"
    1.10 +VERSION="3.5.0"
    1.11 +CATEGORY="python"
    1.12  SHORT_DESC="The modular source code checker for Python"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="MIT"
    1.15 -WEB_SITE="https://pypi.org/project/flake8/"
    1.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.17  HOST_ARCH="any"
    1.18  REPOLOGY="python:flake8"
    1.19  
    1.20 -BUILD_DEPENDS="python python-enum34 python-configparser python-mccabe \
    1.21 -python-pyflakes16 python-pycodestyle23"
    1.22 +BUILD_DEPENDS="python python-configparser python-enum34 python-mccabe \
    1.23 +python-pycodestyle23 python-pyflakes16 \
    1.24 +python3 python3-mccabe python3-pycodestyle23 python3-pyflakes16"
    1.25 +SPLIT="${PACKAGE/python/python3}:3"
    1.26  
    1.27  compile_rules() {
    1.28 -	pip install --no-compile --root=$DESTDIR flake8
    1.29 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.30  }
    1.31  
    1.32  genpkg_rules() {
    1.33 -	VERSION=$(sed -n '/^Successfully installed/ s|.*flake8-||p' $LOGS/$PACKAGE.log)
    1.34  	copy @std
    1.35 -	DEPENDS="python python-enum34 python-configparser python-mccabe \
    1.36 -	python-pyflakes16 python-pycodestyle23"
    1.37 +	py=${PACKAGE%%-*} # python/python3
    1.38 +	case $PACKAGE in
    1.39 +		python-*)
    1.40 +			DEPENDS="$py $py-configparser $py-enum34 $py-mccabe \
    1.41 +			$py-pycodestyle23 $py-pyflakes16"
    1.42 +			;;
    1.43 +		python3-*)
    1.44 +			DEPENDS="$py $py-mccabe $py-pycodestyle23 $py-pyflakes16"
    1.45 +			;;
    1.46 +	esac
    1.47  }