wok-next diff python-formalchemy/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 a3c581bf52b8
children
line diff
     1.1 --- a/python-formalchemy/receipt	Fri Aug 10 12:53:17 2018 +0300
     1.2 +++ b/python-formalchemy/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -1,30 +1,32 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="FormAlchemy"
     1.8  PACKAGE="python-formalchemy"
     1.9 -VERSION="1.4.2"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="Auto-generated, customizable HTML output form fields from SQLAlchemy mapped classes."
    1.12 +VERSION="1.5.5"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="Auto-generated, customizable HTML output form fields from \
    1.15 +SQLAlchemy mapped classes"
    1.16  MAINTAINER="claudinei@slitaz.org"
    1.17  LICENSE="MIT"
    1.18 -WEB_SITE="https://pypi.org/project/FormAlchemy/"
    1.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.20 +HOST_ARCH="any"
    1.21  REPOLOGY="python:formalchemy"
    1.22  
    1.23 -SOURCE="formalchemy"
    1.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.25 -WGET_URL="https://github.com/FormAlchemy/$SOURCE/archive/$VERSION.tar.gz"
    1.26 +BUILD_DEPENDS="python python-markupsafe python-six python-sqlalchemy \
    1.27 +python-tempita python-webhelpers2 python-webob \
    1.28 +python3 python3-markupsafe python3-six python3-sqlalchemy python3-tempita \
    1.29 +python3-webhelpers2 python3-webob"
    1.30 +SPLIT="${PACKAGE/python/python3}:3"
    1.31  
    1.32 -DEPENDS="python python-sqlalchemy python-webhelpers python-markupsafe \
    1.33 -python-tempita python-webob"
    1.34 -BUILD_DEPENDS="python-dev"
    1.35 +compile_rules() {
    1.36 +	fix utf-8; export LC_ALL=en_US.UTF-8
    1.37  
    1.38 -# Rules to configure and make the package.
    1.39 -compile_rules()
    1.40 -{
    1.41 -	python setup.py install --root=$DESTDIR
    1.42 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.43  }
    1.44  
    1.45 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.46 -genpkg_rules()
    1.47 -{
    1.48 -	cp -a $install/usr $fs
    1.49 +genpkg_rules() {
    1.50 +	copy @std
    1.51 +	py=${PACKAGE%%-*} # python/python3
    1.52 +	DEPENDS="$py $py-markupsafe $py-six $py-sqlalchemy $py-tempita \
    1.53 +	$py-webhelpers2 $py-webob"
    1.54  }