wok-next diff python-mock/receipt @ rev 20992

eduke32: simplify bdeps, fix build for i486
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 04 11:45:29 2018 +0300 (2018-10-04)
parents 8b5b2a6d07b8
children d457c4e37c1b
line diff
     1.1 --- a/python-mock/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-mock/receipt	Thu Oct 04 11:45:29 2018 +0300
     1.3 @@ -1,29 +1,29 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="mock"
     1.8  PACKAGE="python-mock"
     1.9 -VERSION="1.0.1"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="A library for testing in Python."
    1.12 +VERSION="2.0.0"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="A library for testing in Python"
    1.15  MAINTAINER="pascal.bellard@slitaz.org"
    1.16  LICENSE="BSD"
    1.17 -WEB_SITE="https://pypi.org/pypi/mock/"
    1.18 +WEB_SITE="https://pypi.org/pypi/$ORIGIN/"
    1.19 +HOST_ARCH="any"
    1.20  REPOLOGY="python:mock"
    1.21  
    1.22 -SOURCE="mock"
    1.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.24 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
    1.25 +BUILD_DEPENDS="python python-funcsigs python-pbr python-six \
    1.26 +python3 python3-pbr python3-six"
    1.27 +SPLIT="${PACKAGE/python/python3}:3"
    1.28  
    1.29 -DEPENDS="python"
    1.30 -BUILD_DEPENDS="python"
    1.31 -
    1.32 -# Rules to configure and make the package.
    1.33 -compile_rules()
    1.34 -{
    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 -	cp -a $install/usr $fs
    1.44 +genpkg_rules() {
    1.45 +	copy @std
    1.46 +	py=${PACKAGE%%-*} # python/python3
    1.47 +	case $PACKAGE in
    1.48 +		python-*)  DEPENDS="$py $py-funcsigs $py-pbr $py-six";;
    1.49 +		python3-*) DEPENDS="$py $py-pbr $py-six";;
    1.50 +	esac
    1.51  }