aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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-31xquartz_version: escape spaces for mdlsMisty De Meo
2012-07-31mdfind: Check if path is nil as well as emptyMisty De Meo
2012-07-30mdfind: don't stripMisty De Meo
Since we're splitting on newlines, stripping shouldn't be necessary.
2012-07-30mdfind: Handle multiple resultsMisty De Meo
Turns out mdfind can return multiple results on the commandline, if more than one app bundle matches. Fixes Homebrew/homebrew#13789.
2012-07-30Deprecate adamv/alt from brew searchMax Howell
Add brew/science.
2012-07-30Invoke non interactive shell from brew editDean Smith
Fixes Homebrew/homebrew#12779. Closes Homebrew/homebrew#12784. utils.rb invokes bash as a non interactive shell to run the editor when you run brew edit. Non-interactive shells are not intended to capture user input and for running scripts. Whilst the invocation of the editor is a script the actual editor is intended for accept user input so this is an issue with brew and not emacs. This causes issues with emacs which has different behaviors when not running under an interactive shell. Signed-off-by: Max Howell <mxcl@me.com>
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-29Provide missing .pc files for 10.8Misty De Meo
10.8 no longer ships four .pc files which were included in previous versions, though it does still include the libraries which they pointed to. This commit provides copies of the .pc files for all of these, and prepends Library/Homebrew/pkgconfig to PKG_CONFIG_PATH on 10.8. The .pc files in question are: lib curl, lubexslt, libxml-2.0, libxslt Fixes Homebrew/homebrew#13673. Fixes Homebrew/homebrew#13627. Fixes Homebrew/homebrew#13652. Fixes Homebrew/homebrew#13482. Closes Homebrew/homebrew#13572. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-29Synchronize Keg#link and #unlink countsMisty De Meo
Keg#link would sometimes count a linked file when doing mkpath, even if the target directory already exists; #unlink would never count it. This meant that "brew ln" and "brew unlink" counts for the same keg could be out of sync with each other.
2012-07-29Update libpng blacklist messageJack Nagel
Signed-off-by: Jack Nagel <jacknagel@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-28dependencies.rb: Add MPI compiler RequirementCharlie Sharpsteen
All versions of OS X prior to Lion shipped with some version of Open-MPI, but without working compiler wrappers for Fortran. Homebrew currently has two formulae that can supply this software: open-mpi and mpich2. This commit adds a `MPIDependency` Requirement that can be passed one of four values when constructed: :cc, :cxx, :f90, :f77 This will ensure the `mpi<value>` compiler is available and working. For example, if `depends_on MPIDependency.new(:cc, :f90)` is used, the Requirement will search for working `mpicc` and `mpif90` wrappers. If the required wrappers cannot be found, an error message will be displayed that prompts the user to install one of the Homebrew formulae that provides MPI. For each language passed to a MPIDependency Requirement, environment variables be will set that point to the compilers. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-27Deduplicate requirementsJack Nagel
Because of some quirks in how formulae are loaded, DSL methods invoked in the class definition are called multiple times. This results in, for example, duplicate dependencies and requirements. Code that iterates over requirements and takes some action for each can thus repeat things that shouldn't be repeated, like appending to environment variables. Make DependencyCollector's external_deps a Set, and define eql? and hash on Requirement to prevent these duplicates. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-27Requirement: add modify_build_environment methodJack Nagel
Rather than doing type introspection in build.rb, just define a method to perform the necessary environment setup for Requirements. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-27Un-break MacOS.sdk_pathJack Nagel
MacOS.sdk_path is meant to return the SDK path that matches the version argument, so store the result in a hash. Fixes Homebrew/homebrew#13623. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-26Further improve brew doctor issue wiki text.Mike McQuaid
Following feedback from @mxcl on bcda0d.
2012-07-25Revamp fish completionMisty De Meo
The fish completion hadn't been updated since 2009; this brings it up to date. Changes include: * Create the list of commands the same way as in bash completion * Add every option for every current command, with descriptions * Fixes a bug in fish_complete_brew_command * Allow fish_complete_brew_command to take multiple commands * Expand functionality of fish_complete_homebrew_formula to support other commands and taps, and change name to reflect new functionality Tested on fishfish, but should be compatible with fish.
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-25Add MacOS::Xcode.provides_gcc?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-25Add MacOS::Xcode.provides_autotools?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25Move Xcode and CLT modules to a new fileJack 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-25MacOS: avoid checking clt_version in clt_installed?Jack Nagel
Checking "not clt_version.empty?" is unnecessary if we are also checking that dev_tools_path is /usr/bin. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25MacOS module cleanupsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-24doctor: be consistent in path adviceAdam Vandenberg
2012-07-24Revert 66a4ea1c80fa36fe348b3d5ad6d2f6c61cf21c05Misty De Meo
Refusing to unlink files from another keg introduced issues when files changed between formula versions; for instance, this introduced issues when upgrading from gtk+ 2.24.10 to 2.24.11. See Homebrew/homebrew#12778.
2012-07-23doctor: check for DYLD_FALLBACK_LIBRARY_PATHAdam Vandenberg
2012-07-23Make --version/--verbose slightly less confusing.Adam Vandenberg
2012-07-22corrected the macruby download linkSean Lee
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
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-22Fix bottling keg-only brews.Mike McQuaid
2012-07-20Keg#unlink: Don't try to unlink if keg is unlinkedMisty De Meo
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-19MercurialDownloadStrategy: remove redundant chdirJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-19MercurialDownloadStrategy: check out subreposFelipe Navarro V
Closes Homebrew/homebrew#13495. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-18brew-test-bot: move html and css into subdirectoryMisty De Meo
Also updates the bash-completion to ignore subdirectories, rather than specific filename patterns.
2012-07-17bash-completion: hide brew-bot support filesMisty De Meo
Hides files with the extensions ".css" and ".erb" to ensure that the brew-bot's support files don't show up in tab-completion.
2012-07-17Fix typo in commentJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-17Coerce advice to a string in ChecksumMismatchErrorJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-17Formula: mirrors are always non-nilJack Nagel
Since 3ee9b7bd88a2d9017cdf005b10567a1d6d8ec211 ("SoftwareSpec: initialize @mirrors"), @active_spec.mirrors will always be non-nil. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-16Add Ivy Bridge CPU familyMisty De Meo
Fixes Homebrew/homebrew#13434.
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-12Restore completion for "link" and "ln"Jack Nagel
Commit 3b5d7939d9a660a83e29a86e6bab234f3e9f2dcb added completion for `brew link` options, but disabled completion of the actual command itself. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-11Fix brew link --dry-runMisty De Meo
The last make_relative_symlink was missing the mode argument, which caused spurious linking under certain circumstances.
2012-07-11use keg.linked?Adam Vandenberg