# HG changeset patch # User Pascal Bellard # Date 1273826121 -7200 # Node ID 39f586a2b014db64a17d733ac029c6fba0b9809d # Parent 8f21931904cc6b341121e7495c05c963a93eb8f2 dillo-hg, libffcall, v4l-dvb: cache fetched files in SOURCES_REPOSITORY diff -r 8f21931904cc -r 39f586a2b014 dillo-hg/receipt --- a/dillo-hg/receipt Thu May 13 14:07:53 2010 -0400 +++ b/dillo-hg/receipt Fri May 14 10:35:21 2010 +0200 @@ -16,9 +16,15 @@ compile_rules() { [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION - echo "Cloning revision $VERSIN from Dillo repository..." - hg clone --rev $VERSION \ - http://hg.dillo.org/dillo $PACKAGE-$VERSION || exit 0 + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz + if [ -f $TARBALL ]; then + tar xzf $TARBALL + else + echo "Cloning revision $VERSION from Dillo repository..." + hg clone --rev $VERSION \ + http://hg.dillo.org/dillo $PACKAGE-$VERSION || exit 0 + tar czf $TARBALL $PACKAGE-$VERSION + fi cd $src ./autogen.sh && ./configure \ diff -r 8f21931904cc -r 39f586a2b014 libffcall/receipt --- a/libffcall/receipt Thu May 13 14:07:53 2010 -0400 +++ b/libffcall/receipt Fri May 14 10:35:21 2010 +0200 @@ -12,11 +12,17 @@ # Rules to configure and make the package. compile_rules() { - # No official tarball - so we have to use cvs. - cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/libffcall co ffcall + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz + if [ -f $TARBALL ]; then + tar xzf $TARBALL + else + # No official tarball - so we have to use cvs. + cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/libffcall co ffcall - # $src = $PACKAGE-$VERSION - mv ffcall $PACKAGE-$VERSION 2>/dev/null + # $src = $PACKAGE-$VERSION + mv ffcall $PACKAGE-$VERSION 2>/dev/null + tar czf $TARBALL $PACKAGE-$VERSION + fi cd $src ./configure \ --prefix=/usr \ diff -r 8f21931904cc -r 39f586a2b014 v4l-dvb/receipt --- a/v4l-dvb/receipt Thu May 13 14:07:53 2010 -0400 +++ b/v4l-dvb/receipt Fri May 14 10:35:21 2010 +0200 @@ -12,7 +12,15 @@ # Rules to configure and make the package. compile_rules() { - [ -d $PACKAGE-$VERSION ] || hg clone $WEB_SITE $PACKAGE-$VERSION + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-hg-$VERSION.tar.gz + if [ -d $PACKAGE-$VERSION ]; then + true + elif [ -f $TARBALL ]; then + tar xzf $TARBALL + else + hg clone $WEB_SITE $PACKAGE-$VERSION + tar czf $TARBALL $PACKAGE-$VERSION + fi cd $src KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` IFS="." ; set -- $KERNEL_VERSION ; unset IFS