wok-next annotate 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
rev   line source
al@20921 1 # SliTaz package receipt v2.
paul@18819 2
al@20972 3 ORIGIN="pyflakes"
paul@18819 4 PACKAGE="python-pyflakes"
al@20972 5 VERSION="2.0.0"
al@20972 6 VERSION16="1.6.0" # python-flake8 requres 'pyflakes<1.7.0,>=1.5.0'
al@20972 7 CATEGORY="python"
al@20921 8 SHORT_DESC="A simple program which checks Python source files for errors"
paul@18819 9 MAINTAINER="paul@slitaz.org"
al@20887 10 LICENSE="MIT"
al@20972 11 WEB_SITE="https://pypi.org/project/$ORIGIN/"
al@20921 12 HOST_ARCH="any"
al@20887 13 REPOLOGY="python:pyflakes"
al@20887 14
al@20972 15 BUILD_DEPENDS="python python3"
al@20972 16 SPLIT="python3-pyflakes:3 \
al@20972 17 python-pyflakes16:16 python3-pyflakes16:163"
paul@18819 18
al@20921 19 compile_rules() {
al@20972 20 case $SET in
al@20972 21 '') pip install --no-compile --root=$install $ORIGIN==$VERSION;;
al@20972 22 3) pip3 install --no-compile --root=$install $ORIGIN==$VERSION;;
al@20972 23 16) pip install --no-compile --root=$install $ORIGIN==$VERSION16;;
al@20972 24 163) pip3 install --no-compile --root=$install $ORIGIN==$VERSION16;;
al@20972 25 esac
paul@18819 26 }
paul@18819 27
al@20921 28 genpkg_rules() {
al@20972 29 case $PACKAGE in
al@20972 30 *-pyflakes16)
al@20972 31 VERSION="$VERSION16"
al@20972 32 CAT="python|legacy version $VERSION16"
al@20972 33 ;;
al@20972 34 esac
al@20921 35 copy @std
al@20972 36 py=${PACKAGE%%-*} # python/python3
al@20972 37 DEPENDS="$py"
paul@18819 38 }