38364 Commits

Author SHA1 Message Date
Adam Vandenberg
870ba9fa4b External command: brew linkapps
This command looks for Cocoa Applications (.app bundles) in the prefix
of all installed formulae. If any are found, they are linked into
"~/Applications", the system-defined location for per-user apps.
2010-06-09 13:53:50 -07:00
Adam Vandenberg
9f9219a142 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 <flangy@gmail.com>
2010-06-08 12:36:03 -07:00
Fergal Hainey
9f2fc2ab3b More efficient SVN download that handles externals
Now makes use of `svn up` to make cache act like
a cache. Externals without a revision specified
are now checked out at HEAD, whereas before they
were ignored. Escaping arguments to backticks.
Making sure main repo is checked out before the
externals.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-08 12:35:31 -07:00
Adam Vandenberg
89717c9d90 Add sample external commands: dirty, leaves, options
See:

* http://github.com/mxcl/homebrew/issues/issue/1359
* http://github.com/mxcl/homebrew/issues/issue/1438
2010-06-07 21:43:20 -07:00
Adam Vandenberg
b016c2eae5 Support external commands
Homebrew will now look for external commands that are +x on PATH, named
as "brew-<cmd>" or "brew-<cmd>.rb"

* Shell scripts are exec'd with some HOMEBREW variables set in the ENV.
* Ruby scripts are require'd directly.

See: http://wiki.github.com/mxcl/homebrew/external-commands
2010-06-07 21:43:08 -07:00
Adam Vandenberg
385e3637f2 Remove silly concatenation. 2010-06-07 14:15:45 -07:00
Adam Vandenberg
d9dd462309 Remove 'generate' from bash completion. 2010-06-07 14:15:45 -07:00
Adam Vandenberg
115940dbeb Tweak the bin/brew command selector a bit.
* Move 'brew doctor' above both unknown command blocks and then...
* Merge unknown command blocks.

(This is cleanup for supporting external brew commands.)
2010-06-07 14:15:45 -07:00
Adam Vandenberg
f08431b5a1 Add --cache support to hg and bzr. 2010-06-07 14:15:45 -07:00
Adam Vandenberg
eb30a8555b Add cache location support to CVS.
This allows formulaes which use CVS to support:
  brew --cache [formula]
2010-06-07 10:01:15 -07:00
Adam Vandenberg
ff9c50151d Fix typo in comment. 2010-06-03 09:55:08 -07:00
Adam Vandenberg
11449bfd67 Split patching message into downloading and patching 2010-06-01 20:49:10 -07:00
Adam Vandenberg
48bfd8a585 Add "brew --cellar (formula)"
If a formula name is passed to "brew --cellar", output the location of that
brew in the Cellar (which will be "brew --prefix (formula)" without a version
sub-folder.)

This allows for:
  rm -rf `brew --cellar node`
for deleting all versions of node, installed or not.
2010-06-01 20:36:31 -07:00
Adam Vandenberg
43c8bec720 Handle search with no arguments.
Fixes Homebrew/homebrew#1514.
2010-06-01 19:10:32 -07:00
Adam Vandenberg
48c7e2fb0b Don't symlink lib/python2.6
Like pkgconfig, perl5 & php, we don't want any one formula to "own" the
lib/python2.6 path.

Fixes Homebrew/homebrew#1218.
2010-06-01 18:09:44 -07:00
Adam Vandenberg
4777d6b4cf Warn if a keg-level "man" is found.
Homebrew expects manpages to be linked in shared/man/...
and not man/...
2010-06-01 16:25:35 -07:00
Adam Vandenberg
54655a681f Escape search terms. Fixes Homebrew/homebrew#1475 2010-06-01 13:02:19 -07:00
Adam Vandenberg
b72ddaa424 Link to pcc and tiger branches.
sceaga maintains Tiger and PPC support for Homebrew, so change our error
messages to refer to his branches.
2010-06-01 11:56:00 -07:00
Adam Vandenberg
b0bc592e17 Tweak the bash completion script.
* Add --config
* Alphabetize various lists
* Remove some local temp variables
2010-05-30 13:00:51 -07:00
Adam Vandenberg
cc34c0c392 Remove selflink script.
Between the quick-install steps and other instructions on the Wiki,
this "self-link" script is no longer needed (and no longer recommended.)
2010-05-28 12:39:39 -07:00
Adam Vandenberg
4fb29767fe Add "brew create --fink"
Similiar to "brew create --macports", using --fink will do the corresponding
search for Fink packages.
2010-05-26 19:15:16 -07:00
David Porter
4da905b7fb Fix the update tests
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-12 09:20:15 -07:00
Adam Vandenberg
5f4871ba9d Improve archs_for_command
* Work on commands or dylibs
* Use an extension for the list of arches
2010-05-10 20:40:16 -07:00
Adam Vandenberg
2563b32bb6 Allow SVN to report cache location. 2010-05-07 10:38:48 -07:00
Adam Vandenberg
9ba8d5ede8 Move dump_build_env to utils and use during installs too. 2010-05-06 07:23:59 -07:00
Adam Vandenberg
38d969ea7c Let GitDownloadStrategy report its cache location. 2010-05-05 21:20:11 -07:00
Adam Vandenberg
48a5f6ca79 Merge keg_only? blocks in installer. 2010-05-02 18:12:48 -07:00
Adam Vandenberg
639ea39d9c Tweak formatting in previous commit. 2010-05-02 16:53:26 -07:00
Yarrow
305fca250e 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
5fe0b108ad Add check for gettext to brew_doctor.
If the user has linked the keg-only gettext, then a large number
of formulae which don't have "depends_on 'gettext'" will pick it
up anyway. Knowing this about the user's setup may help diagnose
bug reports.
2010-05-01 10:50:14 -07:00
Adam Vandenberg
5ea2248085 Update gcc version checks in brew_doctor
brew_doctor's gcc version checks wasn't taking into account the case
where the user doesn't have one or both of GCC 4.0.x and 4.2.x installed.
2010-05-01 09:02:18 -07:00
Adam Vandenberg
59941733c4 brew list --versions [formulae]
Add a `--versions` switch to `brew list` that shows all versions found
in the cellar for the selected formulae.
2010-04-30 10:16:39 -07:00
listrophy
d7f19e7afb Add 'Arrandale' for core i7 MBP
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-29 11:51:05 -07:00
Daniel Schauenberg
27f25315ec sort brew commands in zsh completion and add doctor
Signed-off-by: David Höppner <0xffea@gmail.com>
2010-04-28 23:15:54 +02:00
Adam Vandenberg
7c158e2350 Fix universal builds on 32-bit CPUs. 2010-04-22 17:23:59 -07:00
Adam Vandenberg
54b5a7afbb Add --git option to 'brew install -i'.
This allows for easy generation of diffs, per a trick in
http://wiki.github.com/mxcl/homebrew/formula-cookbook
2010-04-22 10:41:40 -07:00
Adam Vandenberg
0f7b3bd408 Publicize 'brew doctor' in build failure message. 2010-04-20 12:29:17 -07:00
Adam Vandenberg
db62a9ef9c brew doctor now checks pkg-config search path
Homebrew's pkg-config didn't originally add X11 to its search path.
This causes problems for long-time Homebrew users brewing software
that depends on X11-related packages, such as Cairo.
2010-04-20 12:22:51 -07:00
Adam Vandenberg
ab9ccd7d89 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
Adam Vandenberg
9295f9c022 Do not assume /Developer when checking LLVM. Fixes Homebrew/homebrew#1160. 2010-04-15 13:07:59 -07:00
Adam Vandenberg
f144dcab60 Add PATH to --config and ENV dump.
A user's PATH can help diagnose ./configure and other problems in bug reports.
2010-04-14 09:56:28 -07:00
Adam Vandenberg
de21400fd0 Use Array#length instead of count. Fixes Homebrew/homebrew#1165 2010-04-12 13:09:51 -07:00
Adam Vandenberg
3103ff4b9c Make mod_wsgi and mod_python arch code more similar. 2010-04-12 11:22:47 -07:00
Martin Kühl
8fa99572f9 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
cfc8fca74d 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
72ef9f4aaa Quote prefix for git submodules. Fixes Homebrew/homebrew#1009 2010-04-08 21:01:09 -07:00
Adam Vandenberg
fa06ea6e17 Test that Homebrew's bin is in the path. 2010-04-08 20:17:47 -07:00
Chris Thachuk
3c78d5cf91 Adds support for git submodules. Fixes Homebrew/homebrew#1009.
If submodules exists for a git repo then checkout their index as well
into the appropriate path.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-08 11:26:38 -07:00
Adam Vandenberg
d9fe4f00a4 Only check @specs for :using if @specs exists. Fixes Homebrew/homebrew#1127. 2010-04-06 13:13:50 -07:00
Adam Vandenberg
663ea030fc 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