Ben Finney <ben+deb...@benfinney.id.au> writes:

> Ben Hutchings <b...@decadent.org.uk> writes:
>
>> # Upstream homepage links to a file called puzzles.tar.gz which
>> # redirects to puzzles-r$version.tar.gz.  uscan can't check that.
>> # However, this is a nightly snapshot numbered according to the SVN
>> # revision number, so we can extract the version number from its web
>> # view.
>> version=3
>> opts="filenamemangle=s/.*\?rev=(\d+).*/sgt-puzzles_$1.orig.tar.gz/,downloadurlmangl...@.*\?rev=(\d+)....@http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-r$1.tar.gz@";
>>  \
>> http://svn.tartarus.org/sgt/puzzles/ /sgt\?rev=(\d+)\&view=rev
>> 
>> OK, so it's not exactly pretty...
>
> It also fails in those instances where “available from a VCS” does
> not mean “available as a working tree of files via HTTP”. Some VCS
> repositories make *only* the revision data available, for various
> reasons.

For ffmpeg (and mplayer AFAIUI), upstream provides only revision data,
and is heavily using svn:externals, which forced me doing horrible
things like this:

http://git.debian.org/?p=pkg-multimedia/ffmpeg-debian.git;a=blob;f=debian/get-orig-source.sh;hb=HEAD
http://git.debian.org/?p=pkg-multimedia/mplayer.git;a=blob;f=debian/get-orig-source.sh;hb=HEAD

Does someone manage to "port" that script to uscan? ;-)

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4


-- 
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to