Commit Graph
152 Commits
Author SHA1 Message Date
Adam Vandenberg adfc7b4b22 Fix inheritance in formula.rb 2011-03-12 17:48:48 -08:00
Adam Vandenberg d297f1b7a9 Allow 'brew install' on relative paths 2011-03-12 16:37:56 -08:00
Adam Vandenberg 7e2a4c2f44 Complain if a formula in core won't import. 2011-03-12 11:55:11 -08:00
Adam Vandenberg 05d175d51f Use + instead of /. 2011-03-12 11:55:07 -08:00
Max Howell a28e4d89c5 Formula.resolve_alias to compatability.rb 2011-03-12 11:55:03 -08:00
Max Howell 9afc85ad33 Refactor the brew command into one file per command
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.

But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.

If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.

Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00
Adam Vandenberg debb013cc5 Fix GithubGistFormula. 2010-12-22 17:08:53 -08:00
Adam Vandenberg 0e76be2736 Fix installing from local abs. paths. 2010-11-04 13:53:03 -07:00
Adam Vandenberg 13b6a9b8fe Quash warning.
Fixes #3056
2010-11-03 07:03:50 -07:00
Jamie Macey d778aa6912 fix warnings: ambiguous splat
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:50:54 -07:00
Adam Vandenberg 03fa983b5d Allow installation from URLs
This allows installation like:
    brew install http://example.com/something.rb

Based on an original patch by [dwalters].

Fixes #160
2010-10-30 14:23:01 -07:00
Joshua Peek a98a225033 Prefer HEAD version if its installed
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-26 09:39:17 -07:00
Adam Vandenberg c823aabb98 Allow :build dependencies. 2010-10-12 07:13:27 -07:00
Adam Vandenberg 82b97f5631 improve std_cmake_parameters comments 2010-09-29 22:00:24 -07:00
Adam Vandenberg dbd6de0d5d Move resolve_alias from ARGV to Formula
Also, call this function from a few places where the code was duplicated.
2010-09-29 21:55:44 -07:00
Adam Vandenberg 2092c0457d Add formula name to LLVM warning 2010-09-29 21:53:05 -07:00
Adam Vandenberg 6379757f2f Don't allow unsupported dep types 2010-09-29 21:44:46 -07:00
Adam Vandenberg f1c356a5c8 Let 'interactive_shell' take a formula and set ENV vars.
Pull duplicate code out of install --debug and install -i up into
'interactive_shell'.
2010-08-20 10:03:44 -07:00
Adam Vandenberg 36e4811dca Use 1.9 compat syntax. Fixes #2192 2010-08-16 14:14:46 -07:00
Adam Vandenberg 0ee5096a2b fails_with_llvm will switch to GCC 4.2 by default 2010-08-09 21:33:30 -07:00
Chris Hoffman f2994f3b5d Fix skip_clean :all to actually skip clean step
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-09 08:13:17 -07:00
Brent Fitzgerald 95a4fe70c3 Getting rid of pesky 'warning: parenthesize argument(s) for future version'
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-08 08:25:35 -07:00
Adam Vandenberg dc49a5fa6a Add 'skip_clean :all' to the DSL. 2010-08-07 18:08:52 -07:00
Adam Vandenberg 9f58ebf25d Add keg-only to DSL 2010-08-07 18:08:52 -07:00
Sam X Nguyen 39226fb31b added man subdirectories man2-man8
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-07 18:08:51 -07:00
Adam Vandenberg 2a4bc2c00d Sort and line up path helpers 2010-08-07 18:08:51 -07:00
Adam Vandenberg 04b96580fc Deprecate using symbols to define deps 2010-08-07 18:08:51 -07:00
Adam Vandenberg 8ce3c26a59 "url" now has same features as "head"
Specifically, it can accept all the VCS tag specs that head could,
making it more useful for defining stable versions that come from
VCS instead of tarballs.

A new "SoftwareSpecification" class was added to implement this.

This new class holds a "spec" for downloading a software package.
It combines the url (or head url) with the "specs" [1] that head has
been able to take.

This allows both the stable (url) and unstable (head) specification
for a software package to co-exist without stomping on each others
"specs".

[1] "specs" contain instructions on which branch/tag/revision/etc. to use
    from the source repository URL.
2010-08-07 18:08:51 -07:00
Adam Vandenberg 6544660a78 Add 'aka' removal notice.
'aka' is no longer used to define aliases, but we'll keep the method
around with a warning so non-master brews have a chance to remove any
aka's; otherwise pushing the change will break private brews and we
don't want to do that.
2010-08-07 18:08:49 -07:00
Adam Vandenberg 1672f0ad23 Skip broken formulae 2010-08-07 18:08:48 -07:00
Max Howell 0eefbd5a62 New Aliasing system is plenty less code :) 2010-08-07 18:08:48 -07:00
Adam Vandenberg 3726f8d5a9 Use build_head here too. 2010-07-18 10:44:31 -07:00
Adam Vandenberg 773c2c8c9e Allow user to override temp folder with HOMEBREW_TEMP 2010-07-03 21:48:37 -07:00
Adam Vandenberg 79634fe308 Note how to redownload tarballs on failed checksum.
Fixes #659
2010-06-18 14:16:20 -07:00
Adam Vandenberg c5d56bc501 Add "fails_with_llvm" to formula to document LLVM build breaks.
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm",
to specifically message to the user when a formula is known or suspected
to not build with LLVM. If the user specifies "--use-llvm", the message
will be displayed, but compilation will be tried anyway.

Since using LLVM is now an advanced/hidden feature instead of the
default on 10.6, we'll let the user try anyway (and submit patches
if things are now working.)
2010-06-16 11:50:36 -07:00
Adam Vandenberg b5255849a8 External: 'brew fetch' downloads tarballs to cache. 2010-06-15 12:38:04 -07:00
Adam Vandenberg 6a342c7038 Set HOMEBREW_DEBUG_INSTALL when in a shell during install -d|-i
When an "install -d formula" fails, and the user gets dropped into an
interactive shell, set the HOMEBREW_DEBUG_INSTALL env var to the name
for the formula that failed. Also set variable if the user requests an
interactive install in the first place.

Note that this may be different than the formula being installed, since
it may have been a dep that failed.

Also remove todo in utils; users can now look for HOMEBREW_DEBUG_INSTALL
in their prompt command, and adjust their prompts accordingly.
2010-06-15 08:09:58 -07:00
Adam Vandenberg 7a12e2c398 Failures during ./configure should mention config.log. 2010-06-10 12:57:51 -07:00
Adam Vandenberg 2764fbd6f4 Split patching message into downloading and patching 2010-06-01 20:49:10 -07:00
Adam Vandenberg 7d065840de Let GitDownloadStrategy report its cache location. 2010-05-05 21:20:11 -07:00
Adam Vandenberg 59591e48b0 Tweak formatting in previous commit. 2010-05-02 16:53:26 -07:00
Yarrow 28a2879b60 Show digest mismatch in verify_download_integrity
Report "Expected <supplied digest>, got <file's digest>"
when verify_download_integrity sees a mismatch.  (It had
been, confusingly, reporting "Expected <file's digest>".)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-02 15:49:50 -07:00
Adam Vandenberg a27864d054 Read all formula in a 'rescue' block.
For operations that read all formulae, catch exceptions and
skip broken ones, rather than bomb out entirely.
2010-04-17 09:34:03 -07:00
Martin Kühl b57dec71fb Only respect :using specs when downloading HEAD.
When a formula specifies both an `url` and a `head`, and the latter
specified a `:using` spec, brew would try to fetch the `url` using the
specified download strategy.  With this change, brew respects `:using`
specs only when determining the download strategy for `head`.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-10 08:21:24 -07:00
Adam Vandenberg bada8fe2e6 Support jruby external dependencies.
* Add tests that run only if 'jruby' is installed.
* Note that if your formula has :jruby deps, it should likely
  "depend_on 'jruby'" as well.
2010-04-09 11:21:35 -07:00
Adam Vandenberg 61279fa018 Only check @specs for :using if @specs exists. Fixes #1127. 2010-04-06 13:13:50 -07:00
Adam Vandenberg 2f8011b2e6 Allow :using on head to specify a download strategy.
A 'head' in a formula can now specify which download strategy to use via
a ':using' specification:

    head 'http://svn.macosforge.org/repository/darwinbuild/trunk/',
        :using => :svn

This reduces the number of cases where "download_strategy" needs to be
overriden.
2010-04-06 12:54:11 -07:00
Adam Vandenberg 1ec2eb331b Remove silly concatenation. 2010-04-06 09:33:39 -07:00
Jake Good 404cc2b4b4 More hashing refactoring to work with byte chunks
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-30 09:24:12 -07:00
Jake Good 3eb6c617da More effective use of incremental MD5 to eliminate loading entire tarball into memory
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-23 21:23:25 -07:00