diff options
| author | Max Howell | 2009-09-18 19:16:39 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-21 18:27:48 +0100 |
| commit | 68108e109839a901313b9933cbb1e3202aed90cf (patch) | |
| tree | 124d204c43534f4e8171c5d278d4cb09d46f06a2 /Library/Formula/subversion.rb | |
| parent | 0d1ec9641403ea2de9588ffdb22b68a23e6c2547 (diff) | |
| download | homebrew-68108e109839a901313b9933cbb1e3202aed90cf.tar.bz2 | |
Dependency resolution with fancy syntax
Is it a DSL? No. But people call it that apparently.
To add a dependency:
class Doe <Formula
depends_on 'ray'
depends_on 'mee' => :optional
depends_on 'far' => :recommended
depends_on Sew.new
end
Sew would be a formula you have defined in this Formula file. This is useful,
eg. see Python's formula. Formula specified in this fashion cannot be linked
into the HOMEBREW_PREFIX, they are considered private libraries. This allows
you to create custom installations that are very specific to your formula.
More features to come, like specifying versions
Diffstat (limited to 'Library/Formula/subversion.rb')
| -rw-r--r-- | Library/Formula/subversion.rb | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb index 63254e746..e4584062e 100644 --- a/Library/Formula/subversion.rb +++ b/Library/Formula/subversion.rb @@ -1,22 +1,13 @@ require 'brewkit' -class SubversionDeps <Formula - @url='http://subversion.tigris.org/downloads/subversion-deps-1.6.5.tar.bz2' - @md5='8272316e1670d4d2bea451411e438bde' -end - class Subversion <Formula @url='http://subversion.tigris.org/downloads/subversion-1.6.5.tar.bz2' @homepage='http://subversion.tigris.org/' @md5='1a53a0e72bee0bf814f4da83a9b6a636' - def install - # Slot dependencies into place - d=Pathname.getwd - SubversionDeps.new.brew do - d.install Dir['*'] - end + depends_on 'neon' + def install # Use existing system zlib, dep-provided other libraries # Don't mess with Apache modules (since we're not sudo) system "./configure", "--disable-debug", |
