wok-next diff python-vobject/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 92698cd69f34
children
line diff
     1.1 --- a/python-vobject/receipt	Fri Jul 13 17:30:55 2018 +0300
     1.2 +++ b/python-vobject/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -1,31 +1,26 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="vobject"
     1.8  PACKAGE="python-vobject"
     1.9 -VERSION="0.8.1c"
    1.10 +VERSION="0.9.6.1"
    1.11  CATEGORY="development"
    1.12 -SHORT_DESC="Parse iCalendar and VCards in Python."
    1.13 +SHORT_DESC="Parse iCalendar and VCards in Python"
    1.14  MAINTAINER="pascal.bellard@slitaz.org"
    1.15  LICENSE="Apache"
    1.16 -WEB_SITE="http://vobject.skyhouseconsulting.com/"
    1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.18 +HOST_ARCH="any"
    1.19  REPOLOGY="python:vobject"
    1.20  
    1.21 -SOURCE="vobject"
    1.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.23 -WGET_URL="${WEB_SITE}$TARBALL"
    1.24 +BUILD_DEPENDS="python python-dateutil python-six \
    1.25 +python3 python3-dateutil python3-six"
    1.26 +SPLIT="${PACKAGE/python/python3}:3"
    1.27  
    1.28 -DEPENDS="python python-dateutil"
    1.29 -BUILD_DEPENDS="python-dev python"
    1.30 -
    1.31 -# Rules to configure and make the package.
    1.32 -compile_rules()
    1.33 -{
    1.34 -	python setup.py build &&
    1.35 -	python setup.py install --root=$DESTDIR
    1.36 +compile_rules() {
    1.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.38  }
    1.39  
    1.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 -genpkg_rules()
    1.42 -{
    1.43 -	mkdir -p $fs
    1.44 -	cp -a $install/usr $fs
    1.45 +genpkg_rules() {
    1.46 +	copy @std
    1.47 +	py=${PACKAGE%%-*} # python/python3
    1.48 +	DEPENDS="$py $py-dateutil $py-six"
    1.49  }