| Age | Commit message (Collapse) | Author |
|
|
|
I got fed up writing HOMEBREW_REPOSITORY/"Library" and also correcting mistakes when I did HOMEBREW_PREFIX instead.
|
|
We don't penalise existing users; if ~/Library/Caches/Homebrew already exists and is writable, we select that.
This is the correct choice, the cache should be the same directory whichever user is used and whatever instance of brew is invoked.
The Cache directory is set to 0777 this allows any user to write to it and fixes Homebrew/homebrew#10857.
|
|
|
|
|
|
This version number is arbitrary, and only used to differentiate versions
in bug reports.
There have been enough changes to compiler detection since 0.8 that it makes
sense to bump the version here.
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Several issues have been caused by conflicts between the options
Homebrew passes to curl and those read from $HOME/.curlrc. Passing '-q'
will force curl to ignore settings in that file.
Suggested in Homebrew/homebrew#9027.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Also tidied error output. Still could be tidied quite a lot but I am still considering how best to go about it.
|
|
|
|
Allow compatibility to be disabled with --no-compat or HOMEBREW_NO_COMPAT environment variable.
|
|
|
|
|
|
Brews installed via URL are now checked from the cache when
other commands are run. This allows for instance:
brew install <vim-url>
brew info vim
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
|
|
|
|
|
|
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.
|
|
The Homebrew version number is mainly useful for bug reports. Since it is
included in "brew --config" output, it is an easy way to see roughly how
new the a user's version of Homebrew is.
Bumping the micro version now, in anticipation of some more version-changing
events in the near future.
|
|
|
|
Changes in this version include:
* Aliases are now defined by relative symlinks rather than in the
formulae themselves. Many commands are faster now that they don't
have to read every formula to find aliases.
* "url" now supports the same features as "head", including ":using"
and version specifiers for VCS systems.
* Files and methods marked for deprecation in 0.7 have been removed.
* The Formula DSL now supports "skip_clean :all" and "keg_only 'reason'"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We've bumped the version number, as Homebrew no longer tries to use LLVM
by default (on Snow Leopard.)
|
|
|
|
|
|
|
|
Eg: ['foo', 'bar la'] -> "foo 'bar la'"
|
|
|
|
|
|
Thus install.rb gets the path to the instantiating brew process rather than whichever is first in the PATH. Not to mention Homebrew doesn't *have* to be in the PATH.
|
|
Because it's a global.h constant and that file can be included by other projects.
|
|
|
|
More sensible, and fixes brew
|
|
|
|
I think this tweak to finding the Cellar path addresses one of mxcl's
concerns over supported install scenarios.
|
|
This rewrite attempts to sort out where the Prefix, Cellar, and
Repository are relative to the real and symlinked 'brew' command.
Also included is a --config option which dumps all of these variables.
Any top-level script must define a "BREW_FILE" that gives the path
to brew as it exists in the path. 'brew' itself just uses __FILE__ and
install.rb does a `which brew` (there may be a better way?)
The Prefix is always relative to the location of brew as it exists in
the path. Thus, whether or not /usr/local/bin/brew is a symlink or real
file, the Prefix is always /usr/local. If you have brew in some other
prefix, such as /nonstandard/bin/brew, then '/nonstandard/ will be
managed by brew instead.
The Repository, Cellar, and "Library/Homebrew" required code is always
found relative to the "real" path or brew. If brew is a real file in
/usr/local/bin/brew, then everything else will be found in /usr/local
and we'll expect a /usr/local/.git
Otherwise, we dereference brew's symlink and look for everything else
relative to that path instead.
|
|
The classes better reflect their contents. I'm sure this change may be
contentious, but I am a sucker for trying to create source bases that are easy
to get to grips with and easy to navigate.
brewkit.rb is now a deprecated file.
|
|
The Contributions/selflink.sh script does not symlink the .git directory,
so 'brew update' will fail because the prefix (/usr/local/) is not a git
repository.
To determine the actual location of the git repo we can get the realpath
of the Library (to expand any symlinks) and take the parent of that.
|
|
Thanks to boztek for spotting this. I'll commit a test shortly.
|
|
Signed-off-by: Max Howell <max@methylblue.com>
I removed whitespace changes and changed readlink to realpath as readlink raises if it's not a link.
|
|
Signed-off-by: Max Howell <max@methylblue.com>
I adapted it slightly based on the user agent that Safari gives.
|