From cb0c55190368fc33140de78a3cf0cccd2c809d7d Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 1 Mar 2010 11:35:27 -0800 Subject: Subversion now supports revisions on externals. A formula using svn can now provide a spec: :revisions => {...revision numbers...} that contains a mapping of revision numbers to use for externals. The name of the external is keyed to the revision to use for that external. The symbol :trunk should be used to specify the reivsion of the main repo. An example from the Ffmpeg formula: head 'svn://svn.ffmpeg.org/ffmpeg/trunk', :revisions => { :trunk => 22916, 'libswscale' => 31045 } Signed-off-by: Adam Vandenberg --- Library/Formula/ffmpeg.rb | 3 +- Library/Homebrew/download_strategy.rb | 72 +++++++++++++++++------------------ 2 files changed, 38 insertions(+), 37 deletions(-) (limited to 'Library') diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb index 419e4fc91..a578b5d30 100644 --- a/Library/Formula/ffmpeg.rb +++ b/Library/Formula/ffmpeg.rb @@ -1,7 +1,8 @@ require 'formula' class Ffmpeg 22585 + head 'svn://svn.ffmpeg.org/ffmpeg/trunk', + :revisions => { :trunk => 22916, 'libswscale' => 31045 } homepage 'http://ffmpeg.org/' depends_on 'x264' => :optional diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 8abbb5a54..e5e00d261 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -126,8 +126,7 @@ end class SubversionDownloadStrategy