wok-next rev 20737
libav: fix build; python-antlr: using pip; python-apsw: up (3.19.3-r1)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 20:37:22 2018 +0300 (2018-05-29) |
parents | 0ccbe5331d6c |
children | 2cfb8a544937 |
files | libav/receipt python-antlr/receipt python-apsw/receipt |
line diff
1.1 --- a/libav/receipt Tue May 29 20:07:48 2018 +0300 1.2 +++ b/libav/receipt Tue May 29 20:37:22 2018 +0300 1.3 @@ -3,10 +3,11 @@ 1.4 PACKAGE="libav" 1.5 VERSION="0.6.1" 1.6 CATEGORY="multimedia" 1.7 -SHORT_DESC="clone of git://git.libav.org/libav" 1.8 +SHORT_DESC="Open source audio and video processing tools" 1.9 MAINTAINER="al.bobylev@gmail.com" 1.10 LICENSE="GPL2 GPL3 LGPL2.1 LGPL3" 1.11 WEB_SITE="http://www.libav.org/" 1.12 + 1.13 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 WGET_URL="git|git://github.com/andoma/libav.git" 1.15 BRANCH="v$VERSION" 1.16 @@ -18,9 +19,12 @@ 1.17 zlib-dev bzlib binutils " 1.18 SPLIT="libav-dev" 1.19 1.20 -# Rules to configure and make the package. 1.21 -compile_rules() 1.22 -{ 1.23 +compile_rules() { 1.24 + case $ARCH in 1.25 + i?86) ARCH_ARGS='--arch=i486 --cpu=i486';; 1.26 + *) ARCH_ARGS='';; 1.27 + esac 1.28 + 1.29 sed -i 's|config.h"|&\n#include "libavformat/internal.h"\n#include "libavutil/common.h"|' ffserver.c 1.30 ./configure \ 1.31 --prefix=/usr \ 1.32 @@ -35,28 +39,20 @@ 1.33 --enable-pthreads \ 1.34 --enable-x11grab \ 1.35 --disable-debug \ 1.36 - --arch=i486 \ 1.37 - --cpu=i486 && \ 1.38 - make && \ 1.39 + $ARCH_ARGS && 1.40 + make && 1.41 make install 1.42 } 1.43 1.44 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.45 -genpkg_rules() 1.46 -{ 1.47 +genpkg_rules() { 1.48 case $PACKAGE in 1.49 - libav) 1.50 - DEPENDS="libsdl xorg-libXfixes zlib" 1.51 - mkdir -p $fs/usr/lib 1.52 - cp -a $install/usr/bin $fs/usr 1.53 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.54 - cp -a $install/usr/share $fs/usr 1.55 - ;; 1.56 - libav-dev) 1.57 - mkdir -p $fs/usr/lib 1.58 - cp -a $install/usr/include $fs/usr 1.59 - cp -a $install/usr/lib/*.a $fs/usr/lib 1.60 - cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.61 - ;; 1.62 + libav) 1.63 + copy @std 1.64 + DEPENDS="libsdl zlib" 1.65 + ;; 1.66 + *-dev) 1.67 + copy @dev 1.68 + DEPENDS="libav zlib-dev" 1.69 + ;; 1.70 esac 1.71 }
2.1 --- a/python-antlr/receipt Tue May 29 20:07:48 2018 +0300 2.2 +++ b/python-antlr/receipt Tue May 29 20:37:22 2018 +0300 2.3 @@ -1,29 +1,21 @@ 2.4 # SliTaz package receipt v2. 2.5 2.6 PACKAGE="python-antlr" 2.7 -VERSION="3.4" 2.8 +VERSION="latest" 2.9 CATEGORY="development" 2.10 SHORT_DESC="Language tool for constructing recognizers, compilers for Python" 2.11 MAINTAINER="pascal.bellard@slitaz.org" 2.12 LICENSE="BSD" 2.13 WEB_SITE="http://www.antlr.org/" 2.14 2.15 -TARBALL="antlr-$VERSION.tar.gz" 2.16 -WGET_URL="${WEB_SITE}download/$TARBALL" 2.17 - 2.18 BUILD_DEPENDS="python" 2.19 2.20 -# Rules to configure and make the package. 2.21 -compile_rules() 2.22 -{ 2.23 - cd $src/runtime/Python 2.24 - python setup.py build 2.25 - python setup.py install --root=$DESTDIR 2.26 +compile_rules() { 2.27 + pip install --no-compile --root=$DESTDIR antlr4-python2-runtime 2.28 } 2.29 2.30 -# Rules to gen a SliTaz package suitable for Tazpkg. 2.31 -genpkg_rules() 2.32 -{ 2.33 +genpkg_rules() { 2.34 + VERSION=$(sed -n '/^Successfully installed/ s|.*antlr4-python2-runtime-||p' $LOGS/$PACKAGE.log) 2.35 copy @std 2.36 DEPENDS="python" 2.37 }
3.1 --- a/python-apsw/receipt Tue May 29 20:07:48 2018 +0300 3.2 +++ b/python-apsw/receipt Tue May 29 20:37:22 2018 +0300 3.3 @@ -1,28 +1,24 @@ 3.4 # SliTaz package receipt v2. 3.5 3.6 PACKAGE="python-apsw" 3.7 -VERSION="3.18.0-r1" 3.8 +VERSION="3.19.3-r1" 3.9 CATEGORY="development" 3.10 SHORT_DESC="Python wrapper for SQLite" 3.11 MAINTAINER="pascal.bellard@slitaz.org" 3.12 LICENSE="zlib/libpng" 3.13 -WEB_SITE="https://github.com/rogerbinns/apsw" 3.14 +WEB_SITE="https://rogerbinns.github.io/apsw/" 3.15 3.16 -TARBALL="apsw-$VERSION.zip" 3.17 -WGET_URL="$WEB_SITE/releases/download/$VERSION/$TARBALL" 3.18 +TARBALL="$PACKAGE-$VERSION.tar.gz" 3.19 +WGET_URL="https://github.com/rogerbinns/apsw/archive/$VERSION.tar.gz" 3.20 3.21 BUILD_DEPENDS="python-dev sqlite3-dev" 3.22 3.23 -# Rules to configure and make the package. 3.24 -compile_rules() 3.25 -{ 3.26 +compile_rules() { 3.27 python setup.py build && 3.28 python setup.py install --root=$DESTDIR 3.29 } 3.30 3.31 -# Rules to gen a SliTaz package suitable for Tazpkg. 3.32 -genpkg_rules() 3.33 -{ 3.34 +genpkg_rules() { 3.35 copy @std 3.36 DEPENDS="python libsqlite3" 3.37 }