aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2012-08-04`brew tap --repair`Max Howell
Removes dead symlinks in Formula and re-symlinks all Taps. Closes Homebrew/homebrew#11565.
2012-08-04Tap users can have dashes, adjust regexMax Howell
Repos can't at this point. Hard to easily fix so avoiding it until 2.0 or until someone moans enough.
2012-08-02REPOSITORY not PREFIX when checking for the .gitMax Howell
2012-08-01Error handling for individual tapsMax Howell
Possibly would help diagnose: Homebrew/homebrew#13853.
2012-08-01Warn user not to edit before first updateMax Howell
Because, if you do, your changes will be lost.
2012-08-01Move X11 machinery into MacOS::XQuartz namespaceJack Nagel
In order to better support Xcode-only systems, where X11 libs and executables live under /usr/X11 but headers live in the SDK, move the x11_* helper methods into a new module. This allows us to keep some of the CLT/Xcode-only and Apple X11/XQuartz logic hidden from outside code, like ENV.x11. Since Apple's X11 is actually XQuartz, name the module "MacOS::XQuartz".
2012-07-30Deprecate adamv/alt from brew searchMax Howell
Add brew/science.
2012-07-30Add conflicts_with DSL methodMisty De Meo
conflicts_with is a thin wrapper around Requirement which simplifies marking conflicts between formulae. Closes Homebrew/homebrew#13687. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-28brew-audit: Warn against depending on MPICharlie Sharpsteen
Depending on `open-mpi` or `mpich2` will cause problems since both formulae install components with the same names. `brew audit` now recommends using MPIDependency. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-25Fix brew doctor warnings and spurious newline.Mike McQuaid
Fixes the problems discussed in 34c970 to ensure that `brew doctor` does not look like it is broken on user setup problems but still returns a sensible exit code for e.g. BrewBot.
2012-07-25Rename xctools_fucked?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25Use new Xcode moduleJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25Split Xcode and CLT methods into separate modulesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-24doctor: be consistent in path adviceAdam Vandenberg
2012-07-23doctor: check for DYLD_FALLBACK_LIBRARY_PATHAdam Vandenberg
2012-07-22doctor: Skip outdated check when offlineMisty De Meo
Fixes Homebrew/homebrew#13535.
2012-07-22Keg#unlink: check destination before unlinkingMisty De Meo
Rather than skip unlinking if there's no linked keg record, check to see whether the destination's realpath is the same as the source file in the keg being unlinked.
2012-07-20brew unlink: don't unlink an unlinked formulaMisty De Meo
This caused weird issues in the case that multiple formulae provide the same file.
2012-07-12Update Xcode checks for 10.8Misty De Meo
2012-07-12doctor: fix incorrect usage of 'or'Jack Nagel
Eventually I will stop making this mistake. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-11use keg.linked?Adam Vandenberg
2012-07-09ARGV: add .dry_run? methodMisty De Meo
Add an ARGV.dry_run? helper method for '--dry-run'/'-n' now that '-n' is being used as a git-style dry-run in two commands. Closes Homebrew/homebrew#12898. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-09link: add --force and --dry-run optionsMisty De Meo
`brew link` can now be made to delete any conflicting files using the --force argument. It also has a --dry-run option, similar to git clean -n, which will list any files which would be deleted without touching the filesystem. Closes Homebrew/homebrew#11811. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-08Restore some things to failed install config dumpJack Nagel
Closes Homebrew/homebrew#11091. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08Display compiler build numbers in config dumpJack Nagel
But only display them if they are out of sync with the corresponding Xcode version. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08Always output X11 version and path in config dumpJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08fetch: remove dead codeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-07doctor: update xcode chceckAdam Vandenberg
* 4.3.3 is the latest on 10.7 * Give up if we don't know what the latest is (10.8 and beyond)
2012-07-04Give SoftwareSpec an initializerJack Nagel
Tools like `brew create` need to create and manipulate SoftwareSpec objects. It is useful to be able to do this directly, rather than by proxy through the special methods that serve the main formula DSL. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Teach download strategies to take a SoftwareSpecJack Nagel
Now that a URL, version, and the (for lack of a better term) "specs" associated with said URL (e.g. the VCS revision, or a download strategy hint) are neatly bundled up in a SoftwareSpec object, it doesn't make sense to pass them individually to download strategy constructors. These constructors now take only the formula name and a SoftwareSpec as parameters. This allows us to move mirror handling out out of Formula#fetch and into the download strategies themselves. While doing so, we adjust the mirror implementation a bit; mirrors now assume the same "specs" as their owner's URL. They are still only useable by the CurlDownloadStrategy, but this provides a basis for extending mirror support to other strategies. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04fetch: use new checksum verificationJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Refactor download strategy detectionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Refactor checksummingJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04audit: handle new formula specsJack Nagel
2012-07-04info: display available formula specsJack Nagel
2012-07-04fetch: make use of new formula specsJack Nagel
2012-07-01Update formula template for new X11 dependencyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-01Dump Cmake environment variables in brew --envJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-01Update doctor checks for XQuartzJack Nagel
- pkg-config no longer defaults to checking /usr/X11/lib/pkgconfig; instead this path is added via ENV.x11 or depends_on :x11. Formulae that expect X11 libs should be explicitly marked as depends_on :x11. - Remove warning about /usr/X11 as a symlink. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-01Better describe X11 in brew --configCamillo Lugaresi
2012-06-29doctor: suggest the correct xcode-select path to the usersamueljohn
Shortened the part about the CLT-only systems, because this message is never shown to them. Closes Homebrew/homebrew#13061. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-27Fix Homebrew/homebrew#13012 properly and don't set the SDK if CLTsamueljohn
Undoing parts of the hot fix 78b9e8548e771a59e382e6f13339664ec5498391. The only thing missing was to check for `system "/usr/bin/xcrun -find make 1>/dev/null 2>&1"` and then it's safe to call locate. This commit restores the original functionality but without the risk for recursion and improves the logic of `MacOS.locate`. See below. To important changes in this commit: - For Xcode _and_ CLT: don't add the SDK and leave things as before. So if `MacOS.clt_installed?`, then no `SDKROOT` and `-L` and `-I` directories are set in `ENV.macosxsdk`. - Improved the logic for `MacOS.locate` for Xcode-only situations by assuring that the xcode-select path is correct. This is done by checking that `bin/make` exists and is executable. Otherwise it was possible to set xcode-select to an empty dir. This check is done in `MacOS.sdk_path` too. We are now able to use Xcode wherever it is and can work even, if xcode-select is set to invalid values. (Remember some users don't have sudo access and that is needed to fix xcode-select). Some minor whitespace fixes. Minor backtick fix in doctor.rb's printout. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-26doctor: check for ~/.pydistutils.cfgsamueljohn
Closes Homebrew/homebrew#12363. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-26config: omit Xcode path for CLT-only systemsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-26Clean up --config outputJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-25brew-upgrade: Respect --ignore-dependencies flagCharlie Sharpsteen
Passing `--ignore-dependencies` to `brew upgrade` will now have the desired effect.
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-06-23doctor: rewrite Volume class to fix issue with google update engineTim Oram
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-19doctor: skip missing_deps when no Cellar existsMisty De Meo
Another fix for Homebrew/homebrew#5188.
2012-06-19doctor: skip outdated_homebrew check when no gitMisty De Meo