aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/global.rb
AgeCommit message (Collapse)Author
2013-01-290.9.4: optional/recommended support0.9.4Adam Vandenberg
2013-01-21Object#instance_exec for Ruby 1.8.6Jack Nagel
Not thread safe! But I don't think we care. We want to evaluate the env DSL block in the context of ENV for asthetic reasons, but we also want access to methods on the requirement instance. We can use #instance_exec to pass the requirement itself into the block: class Foo < Requirement env do |req| append 'PATH', req.some_path end def some_path which 'something' end end Also add a simplified version of Object#instance_exec for Ruby 1.8.6.
2013-01-09Define Symbol#to_proc for Ruby 1.8.6Jack Nagel
Ruby 1.8.6 doesn't have Symbol#to_proc, which allows things like map(&:to_s) rather than map { |o| o.to_s }. 1.8.7 does, though, and since it is used in a bunch of the superenv code we should attempt to keep it compatible with 1.8.6. Closes Homebrew/homebrew#16046.
2012-11-25brew-test-bot: general cleanup.Mike McQuaid
2012-11-11Use a class for FORMULA_META_FILESAdam Vandenberg
* lets more text types get picked up * better filter for `brew list`
2012-10-28Homebrew should not ignore curlrcStephen Nelson
Added doctor check for .curlrc rather than silently ignoring it (#13836). Closes Homebrew/homebrew#15419. Signed-off-by: Max Howell <mxcl@me.com> Removed test in doctor where it actually curl'd a file. It's enough to warn if the curlrc exists. I understand people want to remove the warnings, but the point in the doctor is to help diagnose and not to be some ramification of your UNIX system.
2012-10-03Fix use of ISSUES_URL.Mike McQuaid
2012-09-27Make FileUtils extension available globallyJack Nagel
Now that we are monkeypatching copy_metadata, we should load our extension up front for consistency. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11Tighten post-install checksJack Nagel
- Avoid ENOTDIR by ensuring that the directories we are checking are actually directories. - DRY up the check_PATH method; paths are already available via the global ORIGINAL_PATHS. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06Remove dead codeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06Don't raise when expanding ORIGINAL_PATHSJack Nagel
File.expand_path raises ArgumentError when it is passed a path with a nonexistent username, e.g.: $ PATH=~foo/bin:$PATH brew /usr/local/Library/Homebrew/global.rb:97:in `expand_path': user foo doesn't exist (ArgumentError) However, `brew doctor` does its own expansion of PATH entries and outputs warnings if this happens, so let's just ignore it here and continue on our way. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-29Homebrew 0.9.3 for superenv0.9.3Adam Vandenberg
2012-08-29Speed up brew instantiationMax Howell
Adding MacOS.dev_tools_path to our PATH was slow. We no longer need to do this because of the previous commit making a script wrapper for git and svn. It was slow because the function calls out to lots of slow utilities to determine this path.
2012-08-20MacOS.dev_tools_path: return nil if not foundJack Nagel
This matches the semantics of other path methods, such as Xcode.prefix. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-20HOMEBREW_CONTRIBJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12Make Set available globallyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06Fix issues with writable? detection in brew doctorBrandon Black
Closes Homebrew/homebrew#13689. Signed-off-by: Max Howell <mxcl@me.com> There are subtle distinctions between writable? and writable_real? we don't understand precisely why we need this, but it fixes the bugs :/
2012-07-04Homebrew 0.9.20.9.2Jack Nagel
0.9.2 includes the formula specs refactoring. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-29Refactor PATH setupJack Nagel
- Make ORIGINAL_PATHS an array of Pathnames instead of strings - Append the dev tools path once in global.rb instead of build.rb Closes Homebrew/homebrew#13075. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-27Homebrew 0.9.10.9.1Adam Vandenberg
Bump the version number due to the Xcode/CLT change.
2012-06-25Improve bug report wiki page text.Mike McQuaid
Fixes Homebrew/homebrew#12674.
2012-06-24Core change: XCode only install, with CLT or bothsamueljohn
Allow XCode without the Command Line Tools to work with homebrew, so it's not necessary to register an Apple Dev ID and/or go to the XCode prefs and download the CLT. Yay! Further, this commit allows to use the CLT solely (without the need for XCode). Saves quite some megs. (Some furmulae require xcodebuild) Of course XCode together with the CLT is still fine and has been tested on 10.7 and 10.6 with Xcode 4 and Xcode 3. Only on Lion or above, tell the user about the options, which are - Xcode without CLT - CLT without Xcode - both (ok, it's not directly stated, but implicit) So if no Xcode is found and we are on Lion or above, we don't fail but check for the CLTs now. For older Macs, the old message that Xcode is needed and the installer should be run is still displayed. If the CLT are not found but Xcode is, then we print out about the experimental status of this setup. Closes Homebrew/homebrew#10510. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-29Exit with bad exit code on command failures.Mike McQuaid
2012-03-20Update Xcode version checksJack Nagel
Closes Homebrew/homebrew#11044. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-20Update issues URLJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-18Set MACOS_VERSION as 0 on non-OSX platforms.Mike McQuaid
2012-03-16Homebrew 0.90.9Max Howell
2012-03-16HOMEBREW_LIBRARYMax Howell
I got fed up writing HOMEBREW_REPOSITORY/"Library" and also correcting mistakes when I did HOMEBREW_PREFIX instead.
2012-03-14Use /Library/Caches/HomebrewMax Howell
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.
2012-03-09Tell the user when build logs are copiedAdam Vandenberg
2012-03-07Protect against unwritable cache locationMax Howell
2011-12-21Homebrew 0.8.10.8.1Adam Vandenberg
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.
2011-12-11'CHANGES' is also a meta fileJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-08Ignore $HOME/.curlrc when invoking curlJack Nagel
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>
2011-08-31Save config.log to ~/Library/Logs/HomebrewMax Howell
Also tidied error output. Still could be tidied quite a lot but I am still considering how best to go about it.
2011-08-24HOMEBREW_CURL_ARGS so that tests can be more silentMax Howell
2011-08-02Improve compatibility for old formulaMax Howell
Allow compatibility to be disabled with --no-compat or HOMEBREW_NO_COMPAT environment variable.
2011-06-21Make bottle path.Mike McQuaid
2011-06-16Fix issue checklist linkAdam Vandenberg
2011-06-08Better support for brew install <url>Adam Vandenberg
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
2011-06-07Add HOMEBREW_CACHE to let the user specify a cache directoryDan Loewenherz
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Homebrew 0.80.8Adam Vandenberg
2011-03-12Use + instead of /.Adam Vandenberg
2011-03-12Revised bug report textMax Howell
2011-03-12Some CleanupMax Howell
2011-03-12Refactor the brew command into one file per commandMax Howell
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.
2010-10-31Bump Homebrew to 0.7.10.7.1Adam Vandenberg
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.
2010-09-07Bump Xcode recommendation to 3.2.3Adam Vandenberg
2010-08-07Homebrew now at version 0.70.7Adam Vandenberg
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'"
2010-07-21Bump Xcode recommendation to 3.2.2Adam Vandenberg