# HG changeset patch # User Aleksej Bobylev # Date 1527615442 -10800 # Node ID 7a27d976b7a5bd3e209dcb901bf74b542980e4f2 # Parent 0ccbe5331d6c253a6de2354f8c342f14e550d7bb libav: fix build; python-antlr: using pip; python-apsw: up (3.19.3-r1) diff -r 0ccbe5331d6c -r 7a27d976b7a5 libav/receipt --- a/libav/receipt Tue May 29 20:07:48 2018 +0300 +++ b/libav/receipt Tue May 29 20:37:22 2018 +0300 @@ -3,10 +3,11 @@ PACKAGE="libav" VERSION="0.6.1" CATEGORY="multimedia" -SHORT_DESC="clone of git://git.libav.org/libav" +SHORT_DESC="Open source audio and video processing tools" MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL2 GPL3 LGPL2.1 LGPL3" WEB_SITE="http://www.libav.org/" + TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="git|git://github.com/andoma/libav.git" BRANCH="v$VERSION" @@ -18,9 +19,12 @@ zlib-dev bzlib binutils " SPLIT="libav-dev" -# Rules to configure and make the package. -compile_rules() -{ +compile_rules() { + case $ARCH in + i?86) ARCH_ARGS='--arch=i486 --cpu=i486';; + *) ARCH_ARGS='';; + esac + sed -i 's|config.h"|&\n#include "libavformat/internal.h"\n#include "libavutil/common.h"|' ffserver.c ./configure \ --prefix=/usr \ @@ -35,28 +39,20 @@ --enable-pthreads \ --enable-x11grab \ --disable-debug \ - --arch=i486 \ - --cpu=i486 && \ - make && \ + $ARCH_ARGS && + make && make install } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ +genpkg_rules() { case $PACKAGE in - libav) - DEPENDS="libsdl xorg-libXfixes zlib" - mkdir -p $fs/usr/lib - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib/*.so* $fs/usr/lib - cp -a $install/usr/share $fs/usr - ;; - libav-dev) - mkdir -p $fs/usr/lib - cp -a $install/usr/include $fs/usr - cp -a $install/usr/lib/*.a $fs/usr/lib - cp -a $install/usr/lib/pkgconfig $fs/usr/lib - ;; + libav) + copy @std + DEPENDS="libsdl zlib" + ;; + *-dev) + copy @dev + DEPENDS="libav zlib-dev" + ;; esac } diff -r 0ccbe5331d6c -r 7a27d976b7a5 python-antlr/receipt --- a/python-antlr/receipt Tue May 29 20:07:48 2018 +0300 +++ b/python-antlr/receipt Tue May 29 20:37:22 2018 +0300 @@ -1,29 +1,21 @@ # SliTaz package receipt v2. PACKAGE="python-antlr" -VERSION="3.4" +VERSION="latest" CATEGORY="development" SHORT_DESC="Language tool for constructing recognizers, compilers for Python" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="http://www.antlr.org/" -TARBALL="antlr-$VERSION.tar.gz" -WGET_URL="${WEB_SITE}download/$TARBALL" - BUILD_DEPENDS="python" -# Rules to configure and make the package. -compile_rules() -{ - cd $src/runtime/Python - python setup.py build - python setup.py install --root=$DESTDIR +compile_rules() { + pip install --no-compile --root=$DESTDIR antlr4-python2-runtime } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ +genpkg_rules() { + VERSION=$(sed -n '/^Successfully installed/ s|.*antlr4-python2-runtime-||p' $LOGS/$PACKAGE.log) copy @std DEPENDS="python" } diff -r 0ccbe5331d6c -r 7a27d976b7a5 python-apsw/receipt --- a/python-apsw/receipt Tue May 29 20:07:48 2018 +0300 +++ b/python-apsw/receipt Tue May 29 20:37:22 2018 +0300 @@ -1,28 +1,24 @@ # SliTaz package receipt v2. PACKAGE="python-apsw" -VERSION="3.18.0-r1" +VERSION="3.19.3-r1" CATEGORY="development" SHORT_DESC="Python wrapper for SQLite" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="zlib/libpng" -WEB_SITE="https://github.com/rogerbinns/apsw" +WEB_SITE="https://rogerbinns.github.io/apsw/" -TARBALL="apsw-$VERSION.zip" -WGET_URL="$WEB_SITE/releases/download/$VERSION/$TARBALL" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/rogerbinns/apsw/archive/$VERSION.tar.gz" BUILD_DEPENDS="python-dev sqlite3-dev" -# Rules to configure and make the package. -compile_rules() -{ +compile_rules() { python setup.py build && python setup.py install --root=$DESTDIR } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ +genpkg_rules() { copy @std DEPENDS="python libsqlite3" }