114 Commits

Author SHA1 Message Date
Mike McQuaid
c38efcef16 Fix brew-bottle output for new bottle syntax. 2012-01-29 20:35:40 +00:00
Cameron Barrie
6b669981de Add beer recipe. This is homebrew after all.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-27 21:13:44 -08:00
Mike McQuaid
38b4a06207 Don't bottle unless built with correct flag.
Closes Homebrew/homebrew#9350.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16 21:05:00 +00:00
Jack Nagel
8b88ea3eae Move brew-depstree into brew deps --tree
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-27 23:29:41 -06:00
Charlie Sharpsteen
a6877c02b0 brew-pull: Clarify comment concerning whitespace 2011-10-24 19:07:59 -07:00
Charlie Sharpsteen
d54e7fb4de brew-pull: Add flag to suppress whitespace fixes
When the pull request includes a patch, fixing whitespace can break the patch.
2011-10-24 18:55:43 -07:00
Jack Nagel
85b17ecb4e brew-unpack: define fails_with_llvm? as false
brew-unpack was failing for formulae that satisfy fails_with_llvm? as
handle_llvm_failure() requires our ENV extension to get ENV.compiler.

Rather than requiring extend/ENV, just define fails_with_llvm? as false
since we don't really care about that when just unpacking a formula.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-14 23:55:45 -05:00
Adam Vandenberg
017d8690d3 Ensure cache folder exists 2011-10-11 10:13:19 -07:00
Adam Vandenberg
0aa9fe73f8 Fix gem install help for brew-server
Sinatra gem must be installed for the system ruby.
2011-09-30 08:05:28 -07:00
at@an-ti.eu
4cf74bc972 List all local installed packages in brew server
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-09-30 08:02:33 -07:00
Adam Vandenberg
1ff01a872e missing should not error if Cellar does not exist 2011-09-26 10:46:50 -07:00
Charlie Sharpsteen
aa6f96003b mirror support: External command for mirror tests
`brew mirror-check <formula...>` will process a list of Formulae and check
their mirrors to see if they are reachable and the MD5 sums are valid.
2011-09-19 09:25:02 -07:00
Jack Nagel
560fb2dbcb brew-missing: use name accessor on Formula objects
Commit 00cd16f changed oudated_brews to return a list of Formula
objects rather than a list of lists containing formula information.

Now we must access the formula name by using the 'name' accessor rather
than an array index.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-18 15:03:37 -05:00
Charlie Sharpsteen
5790935b12 brew-unpack: Apply patches and use formula options
`brew-unpack` now runs `Formula.brew` and copies the stage directory to the
unpack location. This provides two improvements:

  - Patches may be applied. The `patch` metho of the Formula class is
    overloaded such that patches are only applied if the `--patch` option is
    passed to `brew unpack`.

  - Formula can respond better to flags passed by `ARGV`.

Some trickery is pulled to ensure `DATA` is correctly set for each unpacked
formula.
2011-09-12 23:32:01 -07:00
Charlie Sharpsteen
6d6da0c0ef brew-pull: Allow pull request numbers as arguments
If an integer is passed to `brew-pull`, such as `brew pull 6600`, it will be
interpreted as a pull request number. This has the same effect as the more
verbose command line:

    brew pull https://github.com/mxcl/homebrew/pull/6600
2011-08-26 09:44:57 -07:00
Max Howell
4f03ad225e Output bottles to CWD
Rationale: more typical.
2011-08-25 02:32:41 +01:00
Max Howell
19e387d92e brew upgrade
Consequence: you can no longer install when something is already installed, you must upgrade it. This doesn't apply if the formula in question was unlinked. You can still --force installs though.

Rationale: the old way of installing over the top would leave symlinks to multiple versions in /usr/local if the old version had a file the newer version didn't. The new upgrade command handles everything properly.
2011-08-24 22:30:43 +01:00
CharlieRoot
d6c84172ed linkapps: also search for bin/*.app
Qt and PhantomJS install apps to this folder, so find those apps too.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-29 09:17:18 -07:00
Max Howell
1576e0a537 Commands should not have side-effects
Don't install when bottling. Homebrew should bottle whatever is installed. If nothing is installed, error out.
2011-07-29 11:59:27 +01:00
Mike McQuaid
92b9edd34b brew pull --install should build from source. 2011-07-21 10:14:44 -04:00
Mike McQuaid
e9b50941db Print SHA1 after bottling. 2011-06-22 19:11:45 +01:00
Adam Vandenberg
77e01d69ec brew-which: also check sbin and lib folders 2011-06-19 22:12:44 -07:00
Adam Vandenberg
2b9c6def6d which: allow <formulae> args
Also clean-up this external command in preparation
for becoming a built-in command.

Make which_versions available in Homebrew module so
that it can be used by other commands in the future.
2011-06-19 21:58:32 -07:00
Adam Vandenberg
0b0166b2e8 Also link apps found in libexec 2011-06-05 12:36:12 -07:00
chrisg
41407a3f03 brew-linkapps: Support --HEAD builds
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-01 07:09:51 -07:00
Charlie Sharpsteen
783be64cf1 Add new external command: unpack
`brew-unpack` is inspired by the `unpack` command of Haskell's Cabal.
`brew unpack <formulae ...>` will fetch the source code archives of one or more
formula and extract them into subfolders of the current working directory. An
alternate root directory may be specified by invoking the `--destdir` flag.

This provides some nice advantages for inspecting source code compared to
`brew install -i -f <formula>`:

  - The extracted source code won't be deleted when the Ruby process
    terminates---which allows for long-term experimentation.

  - The user has control over which directory the code is extracted into.

  - No install process is initiated, so accidentally typing the equivalent of
    `exit 0` will not cause `brew` to mess with an existing installation.

  - Several formulae may be unpacked at once.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-19 08:03:08 -07:00
Adam Vandenberg
94a524cce3 brew missing: allow a formula argument
If a formula is given, it will be checked for missing deps.
The formula does not have to be installed first.

Without a formula list, still checks all installed brews.
2011-04-13 13:48:31 -07:00
Ferdinand Niedermann
f523662ce5 brew depstree: shows a tree of dependencies for a formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-29 10:43:12 -07:00
Mike McQuaid
a2aa0c0bff Fix brew bottle to work with refactor branch. 2011-03-29 10:26:03 +01:00
Adam Vandenberg
ddb8d1cd95 Add 'brew grep' external command. 2011-03-12 13:26:45 -08:00
Adam Vandenberg
b7e068b740 'brew fetch' now an official command 2011-03-12 11:55:11 -08:00
Adam Vandenberg
87398e7436 'brew options' now an official command 2011-03-12 11:55:10 -08:00
Adam Vandenberg
bda9ffa5d7 'brew test' now an official command 2011-03-12 11:55:10 -08:00
Max Howell
c1a3b724fd Some Cleanup 2011-03-12 11:55:03 -08:00
Adam Vandenberg
c5c1f40d0a Move brew-audit to cmds 2011-03-12 11:55:03 -08:00
Max Howell
768910283a 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
Martin Kühl
01a9de2876 New options: brew graph
Accept any options that `brew deps` accepts.
Default to `--all` to preserve previous behaviour.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-02-20 18:04:53 -08:00
Adam Vandenberg
aa14eaaf1c brew-audit - check formula versions 2011-02-20 15:03:17 -08:00
Adam Vandenberg
6864140237 brew --compact 2011-02-04 16:52:46 -08:00
Mike McQuaid
5b6e613993 brew-pull: Only append "Closes" to last commit. 2011-01-02 11:42:44 +00:00
Mike McQuaid
877e911cba brew-pull: Handle multipatch pull requests better. 2011-01-02 11:38:22 +00:00
Mike McQuaid
4cf099ecdf brew-pull: only use matched string for url. 2010-12-30 16:30:50 +00:00
Mike McQuaid
dc3623f5a6 Improve brew pull to close issues. 2010-12-30 15:27:07 +00:00
Mike McQuaid
8199f1d617 Add missing newline to brew bottle. 2010-12-02 01:13:41 +00:00
Mike McQuaid
f44d1f06e5 Fix brew pull looking at uncommitted work. 2010-12-02 00:10:50 +00:00
Mike McQuaid
1efd33cac0 Add suffix for bottles to avoid cache confusion. 2010-12-01 23:08:12 +00:00
Mike McQuaid
780750e0b7 Improve reasoning in brew bottle for using gzip. 2010-12-01 23:08:12 +00:00
Mike McQuaid
55aa2a296b Fix spaced paths with brew bottle.
We shouldn't ever really have these but better to be safe than sorry.
2010-12-01 23:04:33 +00:00
Mike McQuaid
bc724bd31e Change tabs to spaces in brew bottle. 2010-12-01 23:01:54 +00:00
Mike McQuaid
7cfe8825dc Add initial brew bottle implementation. 2010-11-24 09:38:09 +00:00