wok-next diff python-html5lib/receipt @ rev 21044
Change tags a bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 24 12:56:54 2018 +0200 (2018-11-24) |
parents | 9b3461bf373c |
children |
line diff
1.1 --- a/python-html5lib/receipt Fri Jul 13 13:52:56 2018 +0300 1.2 +++ b/python-html5lib/receipt Sat Nov 24 12:56:54 2018 +0200 1.3 @@ -1,28 +1,26 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="html5lib" 1.8 PACKAGE="python-html5lib" 1.9 -VERSION="0.95" 1.10 -CATEGORY="development" 1.11 -SHORT_DESC="Standarts-compliant library for parsing HTML documents in Python." 1.12 +VERSION="1.0.1" 1.13 +CATEGORY="python" 1.14 +SHORT_DESC="HTML parser based on the WHATWG HTML specification" 1.15 MAINTAINER="claudinei@slitaz.org" 1.16 LICENSE="MIT" 1.17 -WEB_SITE="https://github.com/html5lib/html5lib-python" 1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.19 +HOST_ARCH="any" 1.20 REPOLOGY="python:html5lib" 1.21 1.22 -TARBALL="$PACKAGE-$VERSION.tar.gz" 1.23 -WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" 1.24 +BUILD_DEPENDS="python python-webencodings python-six \ 1.25 +python3 python3-webencodings python3-six" 1.26 +SPLIT="${PACKAGE/python/python3}:3" 1.27 1.28 -DEPENDS="python python-six" 1.29 -BUILD_DEPENDS="python-dev" 1.30 - 1.31 -# Rules to configure and make the package. 1.32 -compile_rules() 1.33 -{ 1.34 - python setup.py install --root=$DESTDIR 1.35 +compile_rules() { 1.36 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.37 } 1.38 1.39 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 -genpkg_rules() 1.41 -{ 1.42 - cp -a $install/usr $fs 1.43 +genpkg_rules() { 1.44 + copy @std 1.45 + py="${PACKAGE%%-*}" # python/python3 1.46 + DEPENDS="$py $py-webencodings $py-six" 1.47 }