wok-next diff python-ooop/receipt @ rev 21529

updated buildroot (2014.08 -> 2020.05)
author Hans-G?nter Theisgen
date Sat Jun 20 16:34:10 2020 +0100 (2020-06-20)
parents 8b5b2a6d07b8
children
line diff
     1.1 --- a/python-ooop/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-ooop/receipt	Sat Jun 20 16:34:10 2020 +0100
     1.3 @@ -1,29 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="ooop"
     1.8  PACKAGE="python-ooop"
     1.9  VERSION="0.2.3"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="OpenObject on Python, a library to connect with Open ERP."
    1.12 +CATEGORY="python"
    1.13 +SHORT_DESC="OpenObject on Python, a library to connect with Open ERP"
    1.14  MAINTAINER="pascal.bellard@slitaz.org"
    1.15  LICENSE="GPL3"
    1.16 -WEB_SITE="https://pypi.org/project/ooop/"
    1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.18 +HOST_ARCH="any"
    1.19  REPOLOGY="python:ooop"
    1.20  
    1.21 -SOURCE="${PACKAGE#*-}"
    1.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.23 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
    1.24 +BUILD_DEPENDS="python python3"
    1.25 +SPLIT="${PACKAGE/python/python3}:3"
    1.26  
    1.27 -DEPENDS="python"
    1.28 -BUILD_DEPENDS="python python-dev"
    1.29 -
    1.30 -# Rules to configure and make the package.
    1.31 -compile_rules()
    1.32 -{
    1.33 -	python setup.py install --root=$DESTDIR
    1.34 +compile_rules() {
    1.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.36  }
    1.37  
    1.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 -genpkg_rules()
    1.40 -{
    1.41 -	cp -a $install/usr $fs
    1.42 +genpkg_rules() {
    1.43 +	copy @std
    1.44 +	py="${PACKAGE%%-*}" # python/python3
    1.45 +	DEPENDS="$py"
    1.46  }