wok-next diff python-jcconv/receipt @ rev 20972

Improve Python packages: update, also provide Python3 packages where available
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Sep 22 16:05:26 2018 +0300 (2018-09-22)
parents 8b5b2a6d07b8
children
line diff
     1.1 --- a/python-jcconv/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-jcconv/receipt	Sat Sep 22 16:05:26 2018 +0300
     1.3 @@ -1,29 +1,24 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="jcconv"
     1.8  PACKAGE="python-jcconv"
     1.9 -VERSION="0.1.6"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="Python Japanese Characters CONVerter."
    1.12 +VERSION="0.2.3"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="Python Japanese Characters CONVerter"
    1.15  MAINTAINER="pascal.bellard@slitaz.org"
    1.16  LICENSE="MIT"
    1.17 -WEB_SITE="https://pypi.org/project/jcconv/"
    1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.19 +HOST_ARCH="any"
    1.20  REPOLOGY="python:jcconv"
    1.21  
    1.22 -SOURCE="jcconv"
    1.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
    1.25 -
    1.26 -DEPENDS="python"
    1.27  BUILD_DEPENDS="python"
    1.28  
    1.29 -# Rules to configure and make the package.
    1.30 -compile_rules()
    1.31 -{
    1.32 -	python setup.py install --root=$DESTDIR
    1.33 +compile_rules() {
    1.34 +	# Python3 based compilation produce error
    1.35 +	pip 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 +	DEPENDS="python"
    1.45  }