wok-4.x rev 5559
dillo-hg, libffcall, v4l-dvb: cache fetched files in SOURCES_REPOSITORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 14 10:35:21 2010 +0200 (2010-05-14) |
parents | 8f21931904cc |
children | 83e2b2ddf023 |
files | dillo-hg/receipt libffcall/receipt v4l-dvb/receipt |
line diff
1.1 --- a/dillo-hg/receipt Thu May 13 14:07:53 2010 -0400 1.2 +++ b/dillo-hg/receipt Fri May 14 10:35:21 2010 +0200 1.3 @@ -16,9 +16,15 @@ 1.4 compile_rules() 1.5 { 1.6 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION 1.7 - echo "Cloning revision $VERSIN from Dillo repository..." 1.8 - hg clone --rev $VERSION \ 1.9 - http://hg.dillo.org/dillo $PACKAGE-$VERSION || exit 0 1.10 + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz 1.11 + if [ -f $TARBALL ]; then 1.12 + tar xzf $TARBALL 1.13 + else 1.14 + echo "Cloning revision $VERSION from Dillo repository..." 1.15 + hg clone --rev $VERSION \ 1.16 + http://hg.dillo.org/dillo $PACKAGE-$VERSION || exit 0 1.17 + tar czf $TARBALL $PACKAGE-$VERSION 1.18 + fi 1.19 cd $src 1.20 ./autogen.sh && 1.21 ./configure \
2.1 --- a/libffcall/receipt Thu May 13 14:07:53 2010 -0400 2.2 +++ b/libffcall/receipt Fri May 14 10:35:21 2010 +0200 2.3 @@ -12,11 +12,17 @@ 2.4 # Rules to configure and make the package. 2.5 compile_rules() 2.6 { 2.7 - # No official tarball - so we have to use cvs. 2.8 - cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/libffcall co ffcall 2.9 + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz 2.10 + if [ -f $TARBALL ]; then 2.11 + tar xzf $TARBALL 2.12 + else 2.13 + # No official tarball - so we have to use cvs. 2.14 + cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/libffcall co ffcall 2.15 2.16 - # $src = $PACKAGE-$VERSION 2.17 - mv ffcall $PACKAGE-$VERSION 2>/dev/null 2.18 + # $src = $PACKAGE-$VERSION 2.19 + mv ffcall $PACKAGE-$VERSION 2>/dev/null 2.20 + tar czf $TARBALL $PACKAGE-$VERSION 2.21 + fi 2.22 cd $src 2.23 ./configure \ 2.24 --prefix=/usr \
3.1 --- a/v4l-dvb/receipt Thu May 13 14:07:53 2010 -0400 3.2 +++ b/v4l-dvb/receipt Fri May 14 10:35:21 2010 +0200 3.3 @@ -12,7 +12,15 @@ 3.4 3.5 # Rules to configure and make the package. 3.6 compile_rules() { 3.7 - [ -d $PACKAGE-$VERSION ] || hg clone $WEB_SITE $PACKAGE-$VERSION 3.8 + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-hg-$VERSION.tar.gz 3.9 + if [ -d $PACKAGE-$VERSION ]; then 3.10 + true 3.11 + elif [ -f $TARBALL ]; then 3.12 + tar xzf $TARBALL 3.13 + else 3.14 + hg clone $WEB_SITE $PACKAGE-$VERSION 3.15 + tar czf $TARBALL $PACKAGE-$VERSION 3.16 + fi 3.17 cd $src 3.18 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 3.19 IFS="." ; set -- $KERNEL_VERSION ; unset IFS