# HG changeset patch # User Pascal Bellard # Date 1273827123 -7200 # Node ID 9f947f5876b2435c5a28a4e1a29b46edc6d8c557 # Parent b537813316cf093aae88e40a99c4e636b707c207 mplayer-svn, rage: cache svn fetched files in SOURCES_REPOSITORY diff -r b537813316cf -r 9f947f5876b2 mplayer-svn/receipt --- a/mplayer-svn/receipt Fri May 14 10:47:49 2010 +0200 +++ b/mplayer-svn/receipt Fri May 14 10:52:03 2010 +0200 @@ -27,8 +27,16 @@ compile_rules() { - [ -d $PACKAGE-$VERSION ] || svn checkout -r $VERSION \ - svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz + if [ -d $PACKAGE-$VERSION ]; then + true + elif [ -f $TARBALL ]; then + tar xzf $TARBALL + else + svn checkout -r $VERSION \ + svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION + tar czf $TARBALL $PACKAGE-$VERSION + fi cd $src # disable unwanted features, remote control, streaming, networking, unwanted codecs, # disable video outputs, audio outputs, some advanced options diff -r b537813316cf -r 9f947f5876b2 rage/receipt --- a/rage/receipt Fri May 14 10:47:49 2010 +0200 +++ b/rage/receipt Fri May 14 10:52:03 2010 +0200 @@ -15,8 +15,14 @@ compile_rules() { [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION - svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \ - -r $VERSION $PACKAGE-$VERSION + TARBALL=$SOURCES_REPOSITORY/$PACKAGE-svn-$VERSION.tar.gz + if [ -f $TARBALL ]; then + tar xzf $TARBALL + else + svn co http://svn.enlightenment.org/svn/e/trunk/$PACKAGE \ + -r $VERSION $PACKAGE-$VERSION + tar czf $TARBALL $PACKAGE-$VERSION + fi cd $src ./autogen.sh \ --prefix=/usr \