wok-next annotate python-kiwi/receipt @ rev 20972
Improve Python packages: update, also provide Python3 packages where available
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 22 16:05:26 2018 +0300 (2018-09-22) |
parents | c022997c7a57 |
children |
rev | line source |
---|---|
al@20972 | 1 # SliTaz package receipt v2. |
claudinei@3832 | 2 |
al@20972 | 3 ORIGIN="kiwi" |
claudinei@3832 | 4 PACKAGE="python-kiwi" |
al@20972 | 5 VERSION="9.16.14" |
al@20972 | 6 CATEGORY="python" |
al@20972 | 7 SHORT_DESC="KIWI - Appliance Builder (next generation)" |
claudinei@3832 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@14996 | 9 LICENSE="LGPL2.1" |
al@20972 | 10 WEB_SITE="https://pypi.org/project/$ORIGIN/" |
al@20972 | 11 #HOST_ARCH |
al@20885 | 12 REPOLOGY="python:kiwi" |
al@20885 | 13 |
al@20972 | 14 TARBALL="$ORIGIN-$VERSION.tar.gz" |
al@20972 | 15 WGET_URL="https://files.pythonhosted.org/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" |
claudinei@3832 | 16 |
al@20972 | 17 BUILD_DEPENDS="python-dev python-docopt python-future python-lxml \ |
al@20972 | 18 python-pyyaml python-requests python-six python-xattr \ |
al@20972 | 19 python3-dev python3-docopt python3-future python3-lxml python3-pyyaml \ |
al@20972 | 20 python3-requests python3-six python3-xattr" |
al@20972 | 21 SPLIT="${PACKAGE/python/python3}:3" |
pankso@9894 | 22 |
al@20972 | 23 compile_rules() { |
al@20972 | 24 # pip$SET install --no-compile --root=$install $ORIGIN==$VERSION |
al@20972 | 25 |
al@20972 | 26 # pip failed because tools not compiled before installing, |
al@20972 | 27 # so using `python ... build` and then `python ... install` to solve it. |
al@20972 | 28 python$SET -B setup.py build && |
al@20972 | 29 python$SET -B setup.py install --root=$install |
al@20972 | 30 |
al@20972 | 31 find $install -type f -exec chmod g-w '{}' \; # 664 -> 644 |
claudinei@3832 | 32 } |
claudinei@3832 | 33 |
al@20972 | 34 genpkg_rules() { |
al@20972 | 35 copy @std |
al@20972 | 36 py=${PACKAGE%%-*} # python/python3 |
al@20972 | 37 DEPENDS="$py $py-docopt $py-future $py-lxml $py-pyyaml $py-requests \ |
al@20972 | 38 $py-six $py-xattr" |
claudinei@3832 | 39 } |