Improved Subversion support.

Homebrew will now use the svn binary pointed to by HOMEBREW_SVN if set,
use a Homebrew-installed svn if present, finally falling back to the
system-provided svn binary.

If a formula (mplayer) requires a newer version of Subversion than what
Leopard provides, it can use the "StrictSubversionDownloadStrategy"
download strategy to warn the user.

These changes also fix an issue with forcing exports not working on a
stock Leopard subversion, but letting the user either specify a specific
binary or install Subversion via Homebrew and pick that up instead.
This commit is contained in:
Adam Vandenberg 2010-06-28 14:55:31 -07:00
parent 3aa0bba3bc
commit 798146a7fa

View file

@ -2,14 +2,12 @@ require 'formula'
class Mplayer <Formula
homepage 'http://www.mplayerhq.hu/'
head 'svn://svn.mplayerhq.hu/mplayer/trunk'
# http://github.com/mxcl/homebrew/issues/issue/87
head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy
depends_on 'pkg-config' => :recommended
depends_on 'yasm' => :optional
# http://github.com/mxcl/homebrew/issues/#issue/87
depends_on :subversion if MACOS_VERSION < 10.6
def install
# Do not use pipes, per bug report
# http://github.com/mxcl/homebrew/issues#issue/622
@ -30,11 +28,3 @@ class Mplayer <Formula
system "make install"
end
end
if MACOS_VERSION < 10.6
class SubversionDownloadStrategy
def svn
Formula.factory('subversion').bin+'svn'
end
end
end