wok-next view python-pyflakes/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | d24f5052ae8c |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="pyflakes"
4 PACKAGE="python-pyflakes"
5 VERSION="2.0.0"
6 VERSION16="1.6.0" # python-flake8 requres 'pyflakes<1.7.0,>=1.5.0'
7 CATEGORY="python"
8 SHORT_DESC="A simple program which checks Python source files for errors"
9 MAINTAINER="paul@slitaz.org"
10 LICENSE="MIT"
11 WEB_SITE="https://pypi.org/project/$ORIGIN/"
12 HOST_ARCH="any"
13 REPOLOGY="python:pyflakes"
15 BUILD_DEPENDS="python python3"
16 SPLIT="python3-pyflakes:3 \
17 python-pyflakes16:16 python3-pyflakes16:163"
19 compile_rules() {
20 case $SET in
21 '') pip install --no-compile --root=$install $ORIGIN==$VERSION;;
22 3) pip3 install --no-compile --root=$install $ORIGIN==$VERSION;;
23 16) pip install --no-compile --root=$install $ORIGIN==$VERSION16;;
24 163) pip3 install --no-compile --root=$install $ORIGIN==$VERSION16;;
25 esac
26 }
28 genpkg_rules() {
29 case $PACKAGE in
30 *-pyflakes16)
31 VERSION="$VERSION16"
32 CAT="python|legacy version $VERSION16"
33 ;;
34 esac
35 copy @std
36 py=${PACKAGE%%-*} # python/python3
37 DEPENDS="$py"
38 }