Commit graph

10 commits

Author SHA1 Message Date
Adam Vandenberg
e441192b74 Add alias support to formulae
* brew install will find an aliased formula
* aliases are searched against
* warn when creating a new formula that has an existing alias.

If Subversion has an alias "svn", then warn when the user tries to
create a new formula "svn". The formula can still be created, though
the user should make sure it's not a duplicate of the existing
aliased one.

Subversion and Objective-Caml formulas get some alises here, so we have
something to test against.
2009-11-19 14:03:07 -08:00
Max Howell
e4f78d928c Remove Snow Leopard Subversion tweaks
The tweaks didn't help for me, but making neon build a dylib rather than static lib did help. So remove them now.
2009-11-07 18:22:34 +00:00
Jeremy Carbaugh
b931d71ee9 disable neon version check to enable checkout of http/https repos
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2009-11-04 16:27:36 +00:00
Adam Vandenberg
75c348dbf8 Update Subversion to 1.6.6 and fix on Leopard.
The "fixes" to this formula for 10.6 completely broke it on 10.5.
The formula now has separate setup / deps handling for 10.5 and
10.6, which should work until Subversion 1.7 comes out some day
and the Snow Leopard system deps break again.
2009-10-30 11:05:49 -07:00
Max Howell
61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00
Jacob Harris
3f6b58cec3 Force Subversion to link to Homebrew neon
Closes Homebrew/homebrew#59

Signed-off-by: Max Howell <max@methylblue.com>

As I understand it, this is not required on 10.6. But then again this formula
isn't really required on 10.6.
2009-09-30 01:24:31 +01:00
Max Howell
c665eac117 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
2009-09-21 18:27:48 +01:00
Adam Vandenberg
7b6c2ee425 Update Subersion to 1.6.5, add SSL support, turn off BDB support. 2009-09-02 23:48:06 +01:00
Max Howell
c81d5b6ca6 Refactor
Large refactor to Formula, mostly improving reliability and error handling but
also layout and readability.

General improvements so testing can be more complete.

Patches are automatically downloaded and applied for Formula that return a
list of urls from Formula::patches.

Split out the brew command logic to facilitate testing.

Facility from Adam Vandenberg to allow selective cleaning of files, added
because Python doesn't work when stripped.
2009-08-10 18:11:17 +01:00
Adam Vandenberg
8a2132a7b9 Add subversion formula. 2009-08-02 01:25:01 +01:00