wok annotate python-tornado/receipt @ rev 25384

units: added file
author Hans-G?nter Theisgen
date Sat Jul 30 17:32:11 2022 +0100 (2022-07-30)
parents 5ea0ce1cecc0
children
rev   line source
pascal@20433 1 # SliTaz package receipt.
pascal@20433 2
pascal@20433 3 PACKAGE="python-tornado"
Hans-G?nter@23568 4 VERSION="5.1.1" # last version for Python 2
pascal@20433 5 CATEGORY="development"
Hans-G?nter@23568 6 SHORT_DESC="A web framework and asynchronous networking library."
pascal@20433 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20433 8 LICENSE="Apache"
Hans-G?nter@23568 9 WEB_SITE="https://www.tornadoweb.org/"
Hans-G?nter@23568 10
pascal@20433 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20433 12 WGET_URL="https://github.com/tornadoweb/tornado/archive/v$VERSION.tar.gz"
pascal@20433 13
Hans-G?nter@23568 14 DEPENDS="python python-backports_abc python-futures python-singledispatch"
Hans-G?nter@23568 15 BUILD_DEPENDS="python python-dev"
pascal@20433 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24299 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@20433 23 # Rules to configure and make the package.
pascal@20433 24 compile_rules()
pascal@20433 25 {
pascal@20433 26 python setup.py install --prefix=/usr --root=$DESTDIR
pascal@20433 27 }
pascal@20433 28
pascal@20433 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20433 30 genpkg_rules()
pascal@20433 31 {
Hans-G?nter@23568 32 cp -a $install/usr $fs
pascal@20433 33 }