wok-next diff python-kiwi/receipt @ rev 21247
updated cyrus-imapd (2.4.17 -> 3.0.12)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 05 16:28:27 2019 +0100 (2019-12-05) |
parents | c022997c7a57 |
children |
line diff
1.1 --- a/python-kiwi/receipt Thu Aug 23 10:22:21 2018 +0300 1.2 +++ b/python-kiwi/receipt Thu Dec 05 16:28:27 2019 +0100 1.3 @@ -1,31 +1,39 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="kiwi" 1.8 PACKAGE="python-kiwi" 1.9 -VERSION="1.9.29" 1.10 -CATEGORY="development" 1.11 -SHORT_DESC="A framework for python applications with graphical user interfaces." 1.12 +VERSION="9.16.14" 1.13 +CATEGORY="python" 1.14 +SHORT_DESC="KIWI - Appliance Builder (next generation)" 1.15 MAINTAINER="claudinei@slitaz.org" 1.16 LICENSE="LGPL2.1" 1.17 -WEB_SITE="https://github.com/stoq/kiwi" 1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.19 +#HOST_ARCH 1.20 REPOLOGY="python:kiwi" 1.21 1.22 -SOURCE="kiwi" 1.23 -TARBALL="$SOURCE-$VERSION.tar.xz" 1.24 -WGET_URL="https://download.gnome.org/sources/kiwi/${VERSION%.*}/$TARBALL" 1.25 +TARBALL="$ORIGIN-$VERSION.tar.gz" 1.26 +WGET_URL="https://files.pythonhosted.org/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" 1.27 1.28 -DEPENDS="python gtk+ python-pygobject2 python-pygtk" 1.29 -SUGGESTED="zopeinterface libglade" 1.30 -BUILD_DEPENDS="python-dev gtk+-dev python-pygobject2-dev python-pygtk-dev" 1.31 +BUILD_DEPENDS="python-dev python-docopt python-future python-lxml \ 1.32 +python-pyyaml python-requests python-six python-xattr \ 1.33 +python3-dev python3-docopt python3-future python3-lxml python3-pyyaml \ 1.34 +python3-requests python3-six python3-xattr" 1.35 +SPLIT="${PACKAGE/python/python3}:3" 1.36 1.37 -# Rules to configure and make the package. 1.38 -compile_rules() 1.39 -{ 1.40 - python setup.py install --root=$DESTDIR 1.41 +compile_rules() { 1.42 + # pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.43 + 1.44 + # pip failed because tools not compiled before installing, 1.45 + # so using `python ... build` and then `python ... install` to solve it. 1.46 + python$SET -B setup.py build && 1.47 + python$SET -B setup.py install --root=$install 1.48 + 1.49 + find $install -type f -exec chmod g-w '{}' \; # 664 -> 644 1.50 } 1.51 1.52 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.53 -genpkg_rules() 1.54 -{ 1.55 - cp -a $install/usr $fs 1.56 +genpkg_rules() { 1.57 + copy @std 1.58 + py=${PACKAGE%%-*} # python/python3 1.59 + DEPENDS="$py $py-docopt $py-future $py-lxml $py-pyyaml $py-requests \ 1.60 + $py-six $py-xattr" 1.61 } 1.62 -