wok-next diff python-simplejson/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents 8b5b2a6d07b8
children
line diff
     1.1 --- a/python-simplejson/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-simplejson/receipt	Tue Sep 01 10:31:46 2020 +0000
     1.3 @@ -1,51 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="simplejson"
     1.8  PACKAGE="python-simplejson"
     1.9 -VERSION="2.1.1"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="Simple, fast, extensible JSON encoder/decoder for python."
    1.12 +VERSION="3.16.0"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="Simple, fast, extensible JSON encoder/decoder for Python"
    1.15  MAINTAINER="claudinei@slitaz.org"
    1.16  LICENSE="MIT"
    1.17 -WEB_SITE="https://pypi.org/project/simplejson/"
    1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.19 +HOST_ARCH="any"
    1.20  REPOLOGY="python:simplejson"
    1.21  
    1.22 -SOURCE="simplejson"
    1.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.24 -WGET_URL="https://files.pythonhosted.org/packages/source/s/$SOURCE/$TARBALL"
    1.25 +BUILD_DEPENDS="python python3"
    1.26 +SPLIT="${PACKAGE/python/python3}:3"
    1.27  
    1.28 -DEPENDS="python"
    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 -	# Cross compilation hack to avoid using compiler wich build python 
    1.35 -	# itself.
    1.36 -	case "$ARCH" in
    1.37 -		arm*)
    1.38 -			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
    1.39 -			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
    1.40 -				/usr/bin/i486-slitaz-linux-gcc ;;
    1.41 -	esac &&
    1.42 -	python setup.py build  &&
    1.43 -	python setup.py install --root=$DESTDIR &&
    1.44 -	case "$ARCH" in
    1.45 -		arm*)
    1.46 -			rm /usr/bin/i486-slitaz-linux-gcc &&
    1.47 -			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
    1.48 -	esac
    1.49 +compile_rules() {
    1.50 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.51  }
    1.52  
    1.53 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.54 -genpkg_rules()
    1.55 -{
    1.56 -	mkdir -p $fs/usr
    1.57 -	cp -a $install/usr/lib $fs/usr
    1.58 +genpkg_rules() {
    1.59 +	copy @std
    1.60 +	py="${PACKAGE%%-*}" # python/python3
    1.61 +	DEPENDS="$py"
    1.62  }
    1.63 -
    1.64 -# Remove old package.
    1.65 -post_install()
    1.66 -{
    1.67 -	[ ! -d "$1/var/lib/tazpkg/installed/simplejson" ] ||
    1.68 -	rm -rf "$1/var/lib/tazpkg/installed/simplejson"
    1.69 -}