# HG changeset patch # User Aleksej Bobylev # Date 1497118347 -10800 # Node ID 8cad5edc1a45d6f4b873a20399dd901868d947bc # Parent 107066b600c7cc41428a93b54e6b47ab91f691e7 Up libffi, python, some python-* packages. diff -r 107066b600c7 -r 8cad5edc1a45 alsaplayer/stuff/gcc44.patch --- a/alsaplayer/stuff/gcc44.patch Sat Jun 10 12:36:39 2017 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ ---- app/ControlSocket.cpp 2009-07-04 22:34:38.000000000 +0200 -+++ app/ControlSocket.cpp 2009-07-04 22:35:53.000000000 +0200 -@@ -28,6 +28,7 @@ - #include - #include - #include -+#include - #include "control.h" - #include "message.h" - #include "Playlist.h" - ---- input/flac/FlacPlugin.cpp Mon Oct 29 22:00:16 2007 -+++ input/flac/FlacPlugin.cpp Thu Aug 6 13:42:44 2009 -@@ -239,7 +239,7 @@ - else - { - // use stream name -- char * fname = strrchr (f->name ().c_str (), '/'); -+ const char * fname = strrchr (f->name ().c_str (), '/'); - if (fname) - { - fname++; -@@ -270,7 +270,7 @@ - if (strncmp(name, "http://", 7) == 0) { - return 0.0; - } -- char *ext = strrchr(name, '.'); -+ const char *ext = strrchr(name, '.'); - if (!ext) - return 0.0; - ext++; diff -r 107066b600c7 -r 8cad5edc1a45 libffi-dev/receipt --- a/libffi-dev/receipt Sat Jun 10 12:36:39 2017 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="libffi-dev" -VERSION="3.2.1" -CATEGORY="development" -SHORT_DESC="libffi devel files." -MAINTAINER="rcx@zoominternet.net" -WEB_SITE="http://sourceware.org/libffi/" -LICENSE="MIT" -HOST_ARCH="i486 arm" - -WANTED="libffi" -DEPENDS="libffi" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - cook_copy_files *.h *.la *.pc -} diff -r 107066b600c7 -r 8cad5edc1a45 libffi/receipt --- a/libffi/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/libffi/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,9 +1,9 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="libffi" VERSION="3.2.1" CATEGORY="development" -SHORT_DESC="A portable foreign function interface library." +SHORT_DESC="A portable foreign function interface library" MAINTAINER="rcx@zoominternet.net" LICENSE="MIT" WEB_SITE="https://sourceware.org/libffi/" @@ -12,7 +12,7 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="ftp://sourceware.org/pub/$PACKAGE/$TARBALL" -DEPENDS="glibc-base" +SPLIT="libffi-dev" # Rules to configure and make the package. compile_rules() @@ -32,5 +32,8 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cook_copy_files *.so* + case $PACKAGE in + libffi) copy @std;; + *-dev) copy @dev;; + esac } diff -r 107066b600c7 -r 8cad5edc1a45 python-aeroolib/receipt --- a/python-aeroolib/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-aeroolib/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,17 +1,17 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-aeroolib" -SOURCE="aeroolib" VERSION="1.0.0" CATEGORY="misc" -SHORT_DESC="A report creation library for Python." +SHORT_DESC="A report creation library for Python" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL3" -TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="https://launchpad.net/aeroolib" -WGET_URL="$WEB_SITE/trunk/$VERSION/+download/$SOURCE.tar.gz" -BUILD_DEPENDS="wget python setuptools" -DEPENDS="python" + +TARBALL="aeroolib-$VERSION.tar.gz" +WGET_URL="$WEB_SITE/trunk/$VERSION/+download/aeroolib.tar.gz" + +BUILD_DEPENDS="python" # Rules to configure and make the package. compile_rules() @@ -23,5 +23,6 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/* $fs + copy @std + DEPENDS="python" } diff -r 107066b600c7 -r 8cad5edc1a45 python-antlr/receipt --- a/python-antlr/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-antlr/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,18 +1,17 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-antlr" -SOURCE="antlr" VERSION="3.4" CATEGORY="development" -SHORT_DESC="language tool for constructing recognizers, compilers for python." +SHORT_DESC="Language tool for constructing recognizers, compilers for Python" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" -TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://www.antlr.org/" + +TARBALL="antlr-$VERSION.tar.gz" WGET_URL="${WEB_SITE}download/$TARBALL" -DEPENDS="python" -BUILD_DEPENDS="python python-dev setuptools" +BUILD_DEPENDS="python" # Rules to configure and make the package. compile_rules() @@ -25,7 +24,6 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr - cp -a $install/usr/lib $fs/usr + copy @std + DEPENDS="python" } - diff -r 107066b600c7 -r 8cad5edc1a45 python-apsw/receipt --- a/python-apsw/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-apsw/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,23 +1,21 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-apsw" -SOURCE="apsw" -VERSION="3.7.16.2-r1" +VERSION="3.18.0-r1" CATEGORY="development" -SHORT_DESC="Python wrapper for SQLite." +SHORT_DESC="Python wrapper for SQLite" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="zlib/libpng" -TARBALL="$SOURCE-$VERSION.zip" -WEB_SITE="http://code.google.com/p/$PACKAGE/" -WGET_URL="http://$SOURCE.googlecode.com/files/$TARBALL" +WEB_SITE="https://github.com/rogerbinns/apsw" -DEPENDS="sqlite" +TARBALL="apsw-$VERSION.zip" +WGET_URL="$WEB_SITE/releases/download/$VERSION/$TARBALL" + BUILD_DEPENDS="python-dev sqlite-dev" # Rules to configure and make the package. compile_rules() { - cd $src python setup.py build && python setup.py install --root=$DESTDIR } @@ -25,5 +23,6 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/usr $fs + copy @std + DEPENDS="python libsqlite" } diff -r 107066b600c7 -r 8cad5edc1a45 python-asterisk/receipt --- a/python-asterisk/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-asterisk/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,29 +1,24 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-asterisk" -SOURCE="py-Asterisk" -VERSION="0.5.1" +VERSION="0.5.14" CATEGORY="development" -SHORT_DESC="Python bindings for the Asterisk Manager API." +SHORT_DESC="Python bindings for the Asterisk Manager API" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" -TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://code.google.com/p/py-asterisk/" -WGET_URL="http://pypi.python.org/packages/source/p/$SOURCE/$TARBALL" +WEB_SITE="https://pypi.python.org/pypi/py-Asterisk" -DEPENDS="python" -BUILD_DEPENDS="python-dev python" +BUILD_DEPENDS="python" # Rules to configure and make the package. compile_rules() { - python setup.py build && - python setup.py install --root=$DESTDIR + pip install --no-compile --root=$DESTDIR py-Asterisk } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs - cp -a $install/usr $fs + copy @std + DEPENDS="python" } diff -r 107066b600c7 -r 8cad5edc1a45 python-babel/receipt --- a/python-babel/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-babel/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,27 +1,24 @@ +# SliTaz package receipt v2. + PACKAGE="python-babel" -VERSION="0.9.6" +VERSION="2.4.0" CATEGORY="development" -SHORT_DESC="A collection of tools for internationalizing Python applications." +SHORT_DESC="A collection of tools for internationalizing Python applications" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" -SOURCE="Babel" -TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://babel.edgewall.org/" -WGET_URL="http://ftp.edgewall.com/pub/babel/$TARBALL" +WEB_SITE="https://pypi.python.org/pypi/Babel" -DEPENDS="python" -BUILD_DEPENDS="python python-dev setuptools" +BUILD_DEPENDS="python-pytz" # Rules to configure and make the package. compile_rules() { - python setup.py build && - python setup.py install --root=$DESTDIR + pip install --no-compile --root=$DESTDIR Babel } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs - cp -a $install/usr $fs + copy @std + DEPENDS="python-pytz" } diff -r 107066b600c7 -r 8cad5edc1a45 python-barcode/receipt --- a/python-barcode/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-barcode/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,27 +1,24 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-barcode" VERSION="0.7" CATEGORY="development" -SHORT_DESC="Create standard barcodes." +SHORT_DESC="Create standard barcodes" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" -SOURCE="pyBarcode" -TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://pypi.python.org/pypi/$SOURCE/$VERSION" -WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" +WEB_SITE="https://pypi.python.org/pypi/pyBarcode" -DEPENDS="python" -BUILD_DEPENDS="python setuptools wget" +BUILD_DEPENDS="python" # Rules to configure and make the package. compile_rules() { - python setup.py install --root=$DESTDIR + pip install --no-compile --root=$DESTDIR pyBarcode } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/usr $fs + copy @std + DEPENDS="python" } diff -r 107066b600c7 -r 8cad5edc1a45 python-beaker/receipt --- a/python-beaker/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-beaker/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,28 +1,24 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-beaker" -VERSION="1.5.4" +VERSION="1.8.1" CATEGORY="development" SHORT_DESC="Cache and Session Library" MAINTAINER="taziden@slitaz.org" LICENSE="BSD" -SOURCE="Beaker" -TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://pylonshq.com" -WGET_URL="$WEB_SITE/download/1.0/$TARBALL" -TAGS="python" +WEB_SITE="https://pypi.python.org/pypi/Beaker" -DEPENDS="python" -BUILD_DEPENDS="python python-dev setuptools" +BUILD_DEPENDS="python-funcsigs" # Rules to configure and make the package. compile_rules() { - python setup.py install --root=$DESTDIR + pip install --no-compile --root=$DESTDIR Beaker } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/usr/ $fs + copy @std + DEPENDS="python-funcsigs" } diff -r 107066b600c7 -r 8cad5edc1a45 python-blessings/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-blessings/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -0,0 +1,24 @@ +# SliTaz package receipt v2. + +PACKAGE="python-blessings" +VERSION="1.6" +CATEGORY="development" +SHORT_DESC="A thin, practical wrapper around terminal coloring, styling, and positioning" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="MIT" +WEB_SITE="https://pypi.python.org/pypi/blessings" + +BUILD_DEPENDS="python" + +# Rules to configure and make the package. +compile_rules() +{ + pip install --no-compile --root=$DESTDIR blessings +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + copy @std + DEPENDS="python" +} diff -r 107066b600c7 -r 8cad5edc1a45 python-bpython/receipt --- a/python-bpython/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-bpython/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,36 +1,27 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-bpython" SOURCE="bpython" -VERSION="0.9.7.1" +VERSION="0.16" CATEGORY="development" -SHORT_DESC="A fancy interface to the Python interpreter." +SHORT_DESC="A fancy interface to the Python interpreter" MAINTAINER="claudinei@slitaz.org" LICENSE="MIT" -TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://www.bpython-interpreter.org" -WGET_URL="$WEB_SITE/releases/$TARBALL" +WEB_SITE="https://pypi.python.org/pypi/bpython" -DEPENDS="python python-pygments setuptools" -BUILD_DEPENDS="$DEPENDS python-dev" +BUILD_DEPENDS="python-dev python-pygments python-greenlet python-requests \ +python-curtsies python-six python-urllib3 python-idna python-certifi \ +python-chardet python-wcwidth python-blessings" # Rules to configure and make the package. compile_rules() { - cd $src - python setup.py install --root=$DESTDIR + pip install --no-compile --root=$DESTDIR bpython } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - for file in `find $install | grep 'pyc$'`; do - rm $file - done - rm -rf $install/usr/share/applications - mkdir -p $fs/usr $fs/usr/share/applications - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib $fs/usr - cp -a $stuff/* $fs/usr/share/applications + copy @std + DEPENDS="${BUILD_DEPENDS/python-dev/}" } - diff -r 107066b600c7 -r 8cad5edc1a45 python-bpython/stuff/bpython.desktop --- a/python-bpython/stuff/bpython.desktop Sat Jun 10 12:36:39 2017 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -[Desktop Entry] -Icon=python -Name=bpython -Comment=A fancy interface to the python interpreter! -Exec=xterm -e bpython -Terminal=false -Type=Application -Categories=Development;Utility;ConsoleOnly; -StartupNotify=true diff -r 107066b600c7 -r 8cad5edc1a45 python-certifi/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-certifi/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -0,0 +1,24 @@ +# SliTaz package receipt v2. + +PACKAGE="python-certifi" +VERSION="2017.4.17" +CATEGORY="network" +SHORT_DESC="Python package for providing Mozilla's CA Bundle" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="ISC" +WEB_SITE="https://pypi.python.org/pypi/certifi" + +BUILD_DEPENDS="python" + +# Rules to configure and make the package. +compile_rules() +{ + pip install --no-compile --root=$DESTDIR certifi +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + copy @std + DEPENDS="python" +} diff -r 107066b600c7 -r 8cad5edc1a45 python-chardet/receipt --- a/python-chardet/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-chardet/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,27 +1,24 @@ # SliTaz package receipt. PACKAGE="python-chardet" -SOURCE=python2-chardet -VERSION="2.0.1" +VERSION="3.0.4" CATEGORY="development" +SHORT_DESC="Python module for character encoding auto-detection" MAINTAINER="devel@slitaz.org" -SHORT_DESC="Python module for character encoding auto-detection" LICENSE="LGPL2.1" -WEB_SITE="http://chardet.feedparser.org" -TARBALL="$SOURCE-$VERSION.tgz" -WGET_URL="$WEB_SITE/download/$TARBALL" +WEB_SITE="https://pypi.python.org/pypi/chardet" -DEPENDS="python" -BUILD_DEPENDS="python-dev" +BUILD_DEPENDS="python" # Rules to configure and make the package. compile_rules() { - python setup.py install --root=$DESTDIR --optimize=1 + pip install --no-compile --root=$DESTDIR chardet } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/usr $fs + copy @std + DEPENDS="python" } diff -r 107066b600c7 -r 8cad5edc1a45 python-curtsies/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-curtsies/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -0,0 +1,24 @@ +# SliTaz package receipt v2. + +PACKAGE="python-curtsies" +VERSION="0.2.11" +CATEGORY="development" +SHORT_DESC="Curses-like terminal wrapper, with colored strings" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="MIT" +WEB_SITE="https://pypi.python.org/pypi/curtsies" + +BUILD_DEPENDS="python-wcwidth python-blessings" + +# Rules to configure and make the package. +compile_rules() +{ + pip install --no-compile --root=$DESTDIR curtsies +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + copy @std + DEPENDS="$BUILD_DEPENDS" +} diff -r 107066b600c7 -r 8cad5edc1a45 python-dev/receipt --- a/python-dev/receipt Sat Jun 10 12:36:39 2017 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="python-dev" -VERSION="2.7.5" -CATEGORY="development" -SHORT_DESC="The Python programming language devel files." -MAINTAINER="pankso@slitaz.org" -LICENSE="PSL" -WEB_SITE="http://www.python.org/" -HOST_ARCH="i486 arm" - -WANTED="python" -DEPENDS="python" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/bin - cp -a $install/usr/include $fs/usr - cp -a $install/usr/bin/*-config $fs/usr/bin - chmod 755 $fs/usr/bin/*-config - # in python package now - python_version=${VERSION:0:3} - rm $fs/usr/include/${WANTED}$python_version/pyconfig.h -} diff -r 107066b600c7 -r 8cad5edc1a45 python-funcsigs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-funcsigs/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -0,0 +1,24 @@ +# SliTaz package receipt v2. + +PACKAGE="python-funcsigs" +VERSION="1.0.2" +CATEGORY="development" +SHORT_DESC="Python function signatures" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="BSD" +WEB_SITE="https://pypi.python.org/pypi/funcsigs" + +BUILD_DEPENDS="python" + +# Rules to configure and make the package. +compile_rules() +{ + pip install --no-compile --root=$DESTDIR funcsigs +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + copy @std + DEPENDS="python" +} diff -r 107066b600c7 -r 8cad5edc1a45 python-greenlet/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-greenlet/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -0,0 +1,24 @@ +# SliTaz package receipt v2. + +PACKAGE="python-greenlet" +VERSION="0.4.12" +CATEGORY="development" +SHORT_DESC="Lightweight in-process concurrent programming" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="MIT" +WEB_SITE="https://pypi.python.org/pypi/greenlet" + +BUILD_DEPENDS="python-dev" + +# Rules to configure and make the package. +compile_rules() +{ + pip install --no-compile --root=$DESTDIR greenlet +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + copy @std @dev + DEPENDS="python" +} diff -r 107066b600c7 -r 8cad5edc1a45 python-idle/receipt --- a/python-idle/receipt Sat Jun 10 12:36:39 2017 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="python-idle" -VERSION="2.7.5" -CATEGORY="development" -SHORT_DESC="Python GUI IDE using TK Toolkit" -MAINTAINER="pankso@slitaz.org" -LICENSE="PSL" -WEB_SITE="http://www.python.org/" -HOST_ARCH="i486 arm" - -WANTED="python" -DEPENDS="python tcl tk" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/bin $fs/usr/lib/python2.7 - cp -a $install/usr/bin/idle $fs/usr/bin - cp -a $install/usr/lib/python2.7/idlelib $fs/usr/lib/python2.7 -} - diff -r 107066b600c7 -r 8cad5edc1a45 python-idle/stuff/python-idle.desktop --- a/python-idle/stuff/python-idle.desktop Sat Jun 10 12:36:39 2017 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Python IDLE -Exec=idle -Icon=python -Categories=Development; diff -r 107066b600c7 -r 8cad5edc1a45 python-idna/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-idna/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -0,0 +1,24 @@ +# SliTaz package receipt v2. + +PACKAGE="python-idna" +VERSION="2.5" +CATEGORY="network" +SHORT_DESC="Internationalized Domain Names in Applications" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="BSD" +WEB_SITE="https://pypi.python.org/pypi/idna" + +BUILD_DEPENDS="python" + +# Rules to configure and make the package. +compile_rules() +{ + pip install --no-compile --root=$DESTDIR idna +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + copy @std + DEPENDS="python" +} diff -r 107066b600c7 -r 8cad5edc1a45 python-pygments/receipt --- a/python-pygments/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-pygments/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,26 +1,24 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-pygments" -VERSION="2.0.2" +VERSION="2.2.0" CATEGORY="development" SHORT_DESC="Generic syntax highlighter" MAINTAINER="claudinei@slitaz.org" LICENSE="BSD" -TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://pygments.org/" -WGET_URL="https://bitbucket.org/birkenfeld/pygments-main/get/$VERSION.tar.bz2" +WEB_SITE="https://pypi.python.org/pypi/Pygments" -DEPENDS="python setuptools" -BUILD_DEPENDS="setuptools wget" +BUILD_DEPENDS="python" # Rules to configure and make the package. compile_rules() { - python setup.py install --no-compile --root=$install + pip install --no-compile --root=$DESTDIR Pygments } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/* $fs + copy @std + DEPENDS="python" } diff -r 107066b600c7 -r 8cad5edc1a45 python-pytz/receipt --- a/python-pytz/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-pytz/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,36 +1,24 @@ # SliTaz package receipt. PACKAGE="python-pytz" -SOURCE="pytz" -VERSION="2011g" +VERSION="2017.2" CATEGORY="development" -SHORT_DESC="World Timezone Definitions for Python." +SHORT_DESC="World Timezone Definitions for Python" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" -TARBALL="$SOURCE-$VERSION.tar.bz2" -WEB_SITE="http://pytz.sourceforge.net/" -WGET_URL="http://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" +WEB_SITE="https://pypi.python.org/pypi/pytz" -DEPENDS="python" -BUILD_DEPENDS="python-dev python" +BUILD_DEPENDS="python" # Rules to configure and make the package. compile_rules() { - python setup.py build && - python setup.py install --root=$DESTDIR + pip install --no-compile --root=$DESTDIR pytz } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs - cp -a $install/usr $fs + copy @std + DEPENDS="python" } - -# Remove old package. -post_install() -{ - [ ! -d "$1/var/lib/tazpkg/installed/pytz" ] || - rm -rf "$1/var/lib/tazpkg/installed/pytz" -} diff -r 107066b600c7 -r 8cad5edc1a45 python-requests/receipt --- a/python-requests/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-requests/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,26 +1,24 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-requests" -VERSION="2.3.0" +VERSION="2.17.3" CATEGORY="network" SHORT_DESC="Python HTTP Requests for Humans" MAINTAINER="al.bobylev@gmail.com" LICENSE="Apache" -WEB_SITE="http://python-requests.org/" -TARBALL="$PACKAGE-$VERSION.tar.gz" -WGET_URL="https://github.com/kennethreitz/requests/archive/v$VERSION.tar.gz" +WEB_SITE="https://pypi.python.org/pypi/requests" -DEPENDS="python" -BUILD_DEPENDS="python wget" +BUILD_DEPENDS="python-urllib3 python-idna python-certifi python-chardet" # Rules to configure and make the package. compile_rules() { - python setup.py install --no-compile --root=$install + pip install --no-compile --root=$DESTDIR requests } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/* $fs + copy @std + DEPENDS="$BUILD_DEPENDS" } diff -r 107066b600c7 -r 8cad5edc1a45 python-six/receipt --- a/python-six/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-six/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,29 +1,25 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python-six" -SOURCE="six" VERSION="1.10.0" CATEGORY="development" -SHORT_DESC="Six is a Python 2 and 3 compatibility library." +SHORT_DESC="Six is a Python 2 and 3 compatibility library" MAINTAINER="claudinei@slitaz.org" LICENSE="MIT" -TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://packages.python.org/six/" -WGET_URL="https://pypi.python.org/packages/source/s/$SOURCE/$TARBALL" +WEB_SITE="https://pypi.python.org/pypi/six" HOST_ARCH="i486 arm" -DEPENDS="python" -BUILD_DEPENDS="wget cacerts python-dev" +BUILD_DEPENDS="python" # Rules to configure and make the package. compile_rules() { - python setup.py install --root=$DESTDIR + pip install --no-compile --root=$DESTDIR six } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/usr $fs + copy @std + DEPENDS="python" } - diff -r 107066b600c7 -r 8cad5edc1a45 python-urllib3/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-urllib3/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -0,0 +1,24 @@ +# SliTaz package receipt v2. + +PACKAGE="python-urllib3" +VERSION="1.21.1" +CATEGORY="network" +SHORT_DESC="HTTP library with thread-safe connection pooling, file post, and more" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="MIT" +WEB_SITE="https://pypi.python.org/pypi/urllib3" + +BUILD_DEPENDS="python" + +# Rules to configure and make the package. +compile_rules() +{ + pip install --no-compile --root=$DESTDIR urllib3 +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + copy @std + DEPENDS="python" +} diff -r 107066b600c7 -r 8cad5edc1a45 python-wcwidth/receipt --- a/python-wcwidth/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python-wcwidth/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,28 +1,24 @@ # SliTaz package receipt. PACKAGE="python-wcwidth" -SOURCE="wcwidth" -VERSION="0.1.6" +VERSION="0.1.7" CATEGORY="development" -SHORT_DESC="Measures number of Terminal column cells of wide-character codes." +SHORT_DESC="Measures number of Terminal column cells of wide-character codes" MAINTAINER="paul@slitaz.org" LICENSE="MIT" -TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="https://github.com/jquast/wcwidth" -WGET_URL="https://pypi.python.org/packages/source/w/$SOURCE/$TARBALL" +WEB_SITE="https://pypi.python.org/pypi/wcwidth" -DEPENDS="python" -BUILD_DEPENDS="wget setuptools python-dev" +BUILD_DEPENDS="python" # Rules to configure and make the package. compile_rules() { - python setup.py install --root=$DESTDIR + pip install --no-compile --root=$DESTDIR wcwidth } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/usr $fs + copy @std + DEPENDS="python" } - diff -r 107066b600c7 -r 8cad5edc1a45 python/receipt --- a/python/receipt Sat Jun 10 12:36:39 2017 +0300 +++ b/python/receipt Sat Jun 10 21:12:27 2017 +0300 @@ -1,22 +1,21 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="python" -VERSION="2.7.5" +VERSION="2.7.13" CATEGORY="development" -SHORT_DESC="The Python programming language." +SHORT_DESC="The Python programming language" MAINTAINER="pankso@slitaz.org" LICENSE="PSL" -WEB_SITE="http://www.python.org/" +WEB_SITE="https://www.python.org/" HOST_ARCH="i486 arm" COOKOPTS="!menus" -TARBALL="$PACKAGE-$VERSION.tar.bz2" -WGET_URL="https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.bz2" +TARBALL="$PACKAGE-$VERSION.tar.xz" +WGET_URL="https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz" -DEPENDS="openssl bzlib readline sqlite zlib ncurses gdbm libffi" BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \ -ncurses-dev tcl-dev tk-dev db-dev gdbm-dev libffi-dev" -SPLIT="python-idle" +ncurses-dev tcl-dev tk-dev db-dev gdbm-dev libffi-dev expat-dev" +SPLIT="python-idle python-tcltk python python-dev" # Rules to configure and make the package. compile_rules() @@ -48,7 +47,6 @@ rm -f $CONFIG_SITE # Second pass for host tools . /etc/slitaz/cook.conf - #patch -p1 < $stuff/python-2.7.3-xcompile.patch || exit 1 cp -f $CONFIG_SITE . CONFIG_SITE="$(pwd)/cook.site" cat >> $CONFIG_SITE << EOT @@ -73,28 +71,44 @@ ;; i?86) ./configure \ + --prefix=/usr \ --enable-shared \ - --build=${HOST_SYSTEM} \ - --host=${HOST_SYSTEM} && - make && make DESTDIR=$DESTDIR install + --with-system-expat \ + --with-system-ffi \ + --with-ensurepip=yes \ + --enable-unicode=ucs4 \ + --build=$HOST_SYSTEM \ + --host=$HOST_SYSTEM && + make && make DESTDIR=$DESTDIR install && + chmod -v 755 $install/usr/lib/libpython2.7.so.1.0 ;; esac - - cp -a $stuff/applications $install/usr/share } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - python_version=${VERSION:0:3} - mkdir -p $fs/usr/include/${PACKAGE}$python_version - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib $fs/usr - # needed for mercurial to work now - cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \ - $fs/usr/include/${PACKAGE}$python_version - rm -f $fs/usr/bin/*-config - # Split IDLE with TK dep - rm -f $fs/usr/bin/idle - rm -rf $fs/usr/lib/python2.7/idlelib + case $PACKAGE in + *-idle) + copy idle idlelib/ python-idle.desktop + CAT="development|GUI IDE using TK Toolkit" + DEPENDS="python-tcltk tcl tk" + ;; + *-tcltk) + copy _tkinter.so lib-tk/ + CAT="development|Tcl/Tk files" + DEPENDS="python tcl tk xorg-libX11" + ;; + python) + # pyconfig.h needed for mercurial to work now + copy @std pyconfig.h + remove_already_packed + DEPENDS="bzlib expat gdbm libcrypto libffi libsqlite libssl \ + ncurses ncurses-libpanel readline zlib" + ;; + *-dev) + copy @dev + remove_already_packed + ;; + esac } diff -r 107066b600c7 -r 8cad5edc1a45 python/stuff/applications/python-idle.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/stuff/applications/python-idle.desktop Sat Jun 10 21:12:27 2017 +0300 @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Name=Python IDLE +Exec=idle +Icon=python +Categories=Development;