wok-next rev 5560
emotion, esmart, ewl, ffmpeg-svn: cache svn fetched files in SOURCES_REPOSITORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 14 10:42:16 2010 +0200 (2010-05-14) |
parents | 39f586a2b014 |
children | b537813316cf |
files | emotion/receipt esmart/receipt ewl/receipt ffmpeg-svn/receipt |
line diff
1.1 --- a/emotion/receipt Fri May 14 10:35:21 2010 +0200 1.2 +++ b/emotion/receipt Fri May 14 10:42:16 2010 +0200 1.3 @@ -15,8 +15,14 @@ 1.4 compile_rules() 1.5 { 1.6 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION 1.7 - svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \ 1.8 - -r $VERSION $PACKAGE-$VERSION 1.9 + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-svn-$VERSION.tar.gz 1.10 + if [ -f $TARBALL ]; then 1.11 + tar xzf $TARBALL 1.12 + else 1.13 + svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \ 1.14 + -r $VERSION $PACKAGE-$VERSION 1.15 + tar czf $TARBALL $PACKAGE-$VERSION 1.16 + fi 1.17 cd $src 1.18 ./autogen.sh \ 1.19 --prefix=/usr \
2.1 --- a/esmart/receipt Fri May 14 10:35:21 2010 +0200 2.2 +++ b/esmart/receipt Fri May 14 10:42:16 2010 +0200 2.3 @@ -14,8 +14,14 @@ 2.4 compile_rules() 2.5 { 2.6 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION 2.7 - svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \ 2.8 - -r $VERSION $PACKAGE-$VERSION 2.9 + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-svn-$VERSION.tar.gz 2.10 + if [ -f $TARBALL ]; then 2.11 + tar xzf $TARBALL 2.12 + else 2.13 + svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \ 2.14 + -r $VERSION $PACKAGE-$VERSION 2.15 + tar czf $TARBALL $PACKAGE-$VERSION 2.16 + fi 2.17 cd $src 2.18 ./autogen.sh \ 2.19 --prefix=/usr \
3.1 --- a/ewl/receipt Fri May 14 10:35:21 2010 +0200 3.2 +++ b/ewl/receipt Fri May 14 10:42:16 2010 +0200 3.3 @@ -14,8 +14,14 @@ 3.4 compile_rules() 3.5 { 3.6 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION 3.7 - svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \ 3.8 - -r $VERSION $PACKAGE-$VERSION 3.9 + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-svn-$VERSION.tar.gz 3.10 + if [ -f $TARBALL ]; then 3.11 + tar xzf $TARBALL 3.12 + else 3.13 + svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \ 3.14 + -r $VERSION $PACKAGE-$VERSION 3.15 + tar czf $TARBALL $PACKAGE-$VERSION 3.16 + fi 3.17 cd $src 3.18 ./autogen.sh \ 3.19 --prefix=/usr \
4.1 --- a/ffmpeg-svn/receipt Fri May 14 10:35:21 2010 +0200 4.2 +++ b/ffmpeg-svn/receipt Fri May 14 10:42:16 2010 +0200 4.3 @@ -17,8 +17,15 @@ 4.4 { 4.5 mkdir -p $src 2> /dev/null 4.6 cd $src 4.7 - [ -f ffmpeg/configure ] || svn checkout -r 'HEAD' \ 4.8 - svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg 4.9 + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz 4.10 + if [ -f ffmpeg/configure ]; then 4.11 + true 4.12 + elif [ -f $TARBALL ]; then 4.13 + tar xzf $TARBALL 4.14 + else 4.15 + svn checkout -r 'HEAD' svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg 4.16 + tar czf $TARBALL ffmpeg 4.17 + fi 4.18 4.19 cd ffmpeg 4.20