wok-next view python-pycodestyle/receipt @ rev 21157
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 04 11:54:13 2019 +0100 (2019-02-04) |
parents | d24f5052ae8c |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="pycodestyle"
4 PACKAGE="python-pycodestyle"
5 VERSION="2.4.0"
6 VERSION23="2.3.1" # python-flake8 requres 'pycodestyle<2.4.0,>=2.0.0'
7 CATEGORY="python"
8 SHORT_DESC="Python style guide checker"
9 MAINTAINER="al.bobylev@gmail.com"
10 LICENSE="MIT"
11 WEB_SITE="https://pypi.org/project/$ORIGIN/"
12 HOST_ARCH="any"
13 REPOLOGY="python:pycodestyle"
15 BUILD_DEPENDS="python python3"
16 SPLIT="python3-pycodestyle:3 \
17 python-pycodestyle23:23 python3-pycodestyle23:233"
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 23) pip install --no-compile --root=$install $ORIGIN==$VERSION23;;
24 233) pip3 install --no-compile --root=$install $ORIGIN==$VERSION23;;
25 esac
26 }
28 genpkg_rules() {
29 case $PACKAGE in
30 *-pycodestyle23)
31 VERSION="$VERSION23"
32 CAT="python|legacy version $VERSION23"
33 ;;
34 esac
35 copy @std
36 py=${PACKAGE%%-*} # python/python3
37 DEPENDS="$py"
38 }