aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2013-01-14options: sort options consistentlyJack Nagel
2013-01-14info: sort conflicts consistentlyJack Nagel
2013-01-14Restore keg-only caveatsJack Nagel
Fixes #16989.
2013-01-14Fix uses cmdChad Catlett
Fixes #17074. Closes #17075. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-13Split up dependency test coverageJack Nagel
The DependencyCollector tests are really integration tests, while the rest are closer to real unit tests. Split them up so that the tests can be run in isolation on a per-class basis.
2013-01-13Remove <=> from Dependency interfaceJack Nagel
It is important that dep equality corresponds to the name attribute, but we may want to use the Comparable interface to sort them by installation order in the future. Code that needs to sort them alphabetically should just use sort_by.
2013-01-13Add tex requirementXiyue Deng
* Detect `latex' and `bibtex' commands. * Recommend installing MacTeX when no LaTeX installation is found. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-13Only mark install as attempted if it was actually attemptedJack Nagel
Commit 30a08f5cc707 ("Don't attempt installation multiple times") was correct in raising FormulaInstallationAlreadyAttemptedError early enough to prevent the other exceptions in #check_install_sanity from being raised, but it should not have moved the point at which formulae are added to the attempted set. Doing so prevents the installer from being instantiated multiple times on the same formula, even if installation was never attempted. Put it back where it belongs.
2013-01-12Beef up deps testsJack Nagel
2013-01-12Define HOMEBREW_LIBRARY for testsJack Nagel
2013-01-11Give a fresh 🍺 after hard work of brew installSamuel John
- Name of the brewed formula in "Summary" heading. - At the beginning of the summary line a 🍺 is given out (but only on Lion or above). This acts as a nice visual marker for the end of a brew-ing process. - When brewing a dependency, the name is highlighted in green. - `oh1` is bold, too (like ohai). Closes #16020. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-10Don't attempt installation multiple timesJack Nagel
When a dependency of a formula specified on the command-line is also specified, *after* the dependent formula, installation proceeds as part of the dependent's dependency tree and then is attempted again because the user asked for it explicitly. This results in the installer raising a CannotInstallFormulaError because it has already been installed. For example: $ brew install graphviz pkg-config ==> Installing graphviz dependency: pkg-config ... ==> Installing graphviz ... Error: pkg-config-0.27.1 already installed We already have a mechanism for dealing with this, but it does not kick in early enough. Move the installation attempt check into FormulaInstaller#check_install_sanity and catch the exception in the appropriate places. Fixes #16957.
2013-01-10Make MPIRequirement satisfied on Xcode-only MacsSamuel John
Closes #16409. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-01-10Restore ARGV even if an exception is raisedJack Nagel
2013-01-09More robust way to avoid attempting to marshal ProcsJack Nagel
2013-01-09Don't store test Proc if we might need to marshall the formulaJack Nagel
Procs cannot be marshalled, but formula objects may be as part of the BuildError exception. If the formula object has a reference to a Proc, this will fail. Work around it by not storing the test Procs during installations.
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 #16046.
2013-01-09doctor: use -V for python versionMisty De Meo
`python --version` doesn't work in some (very) old versions of python. While I doubt this is going to come up very often, it's theoretically possible someone has an old python first in their path. (python -V works on all versions I'm aware of, including python3, and comes before --version in the --help anyway.) Also skips the warning in case the regexp matches nothing, which probably shouldn't happen. But if it does we shouldn't produce the wrong warning.
2013-01-09Set userpaths before processing requirement ENV modificationsJack Nagel
2013-01-08Cleaner: allow non-empty paths to be pruned from cleaningAdam Vandenberg
2013-01-08Don't remove linked formulas when doing a 'cleanup'Mike Lapinsky
Closes #16947. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-08Prune LinkedKegs relative to correct pathJack Nagel
Fixes #16948.
2013-01-08Prevent repeated lookups of nil-valued keysJack Nagel
2013-01-07Allow conversion of Dependencies to ArrayJack Nagel
This is needed for the intersection code in `brew deps` to work right, but can hopefully be refactored away somehow eventually.
2013-01-07Detect when tests are definedJack Nagel
2013-01-07Remove Array subclassingJack Nagel
Inheriting from Array (and other core types) is problematic: - It exposes a very wide interface with many methods that are not really relevant to the subclass. - It can cause some weird side effects, as many Array operations are in C and have hardcoded return values; for example, combining two array subclasses returns a new Array instead of the subclass. Avoid these problems using delegation and the Enumerable module where applicable.
2013-01-07Fix local bottle installation with hyphens.Mike McQuaid
2013-01-07version: mark some implementation details as protectedJack Nagel
2013-01-06Allow tests to be specified in the DSLJack Nagel
Tests can now be specified as a block in the DSL. A temporary test directory is set up automatically when calling Formula#test. The semantics of the test remain the same: the block can either raise an exception or return false to signal failure. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-01-06brew update: warn about adamv/homebrew-altAdam Vandenberg
2013-01-04Add support for external ocaml deps via opamAlex Reece
Closes #16280. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-04Only add -F if the frameworks folder existsAdam Vandenberg
Closes #16901.
2013-01-04audit: remove silly audit, remove duplicate auditAdam Vandenberg
2013-01-03audit: check conflict namesAdam Vandenberg
2013-01-03superenv: make HOMEBREW_FILE availableAdam Vandenberg
Superenv scripts have a stripped PATH, which may not include the brew binary itself. Make this explicitly available to superenv scripts. Fixes bsdmake wrapper. Closes #16805. Closes #16846. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-02Guess system XQuartz version when mdfind failsJack Nagel
Fixes #16857.
2013-01-02Add caveats class and use in brew info.Mike McQuaid
Probably a better approach than reverted e721c7. Fixes #16604.
2013-01-02Cleanup FormulaInstaller caveats.Mike McQuaid
2013-01-01Add Apache version style test.Mike McQuaid
2013-01-01Add Apache version style.Cyril Scetbon
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-01Add --homebrew-developer flagMike McQuaid
2012-12-30Fix some doublethink in the Xcode moduleJack Nagel
Xcode.prefix and Xcode.installed? use slightly different heuristics to find Xcode. In fact, .installed? basically duplicates a portion of the .prefix logic. In practice, the methods results are usually consistent, but .installed? does not handle non-standard prefixes if mdfind cannot locate Xcode (for example, if the user has disabled Spotlight indexing). Since .installed? is essentially a subset of the .prefix logic, we can rely on the result from .prefix instead. Fixes #16790.
2012-12-27Respect BROWSER environment variableJack Nagel
2012-12-27Replace sceaga/homebrew with mistydemeo/tigerbrewMisty De Meo
@sceaga has discontinued his homebrew fork, so tigerbrew is now PPC/ Tiger users' best bet.
2012-12-27utils: replace shell `which` with native codeMisty De Meo
Originally written for tigerbrew, but useful enough for core. Replaces the shelled-out which in utils.rb with a native-ruby equivalent, which is moderately faster. Closes #16659. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-12-26Allow requirements to specify env optionsJack Nagel
2012-12-26Add a small DSL for setting requirement optionsJack Nagel
2012-12-26Clean up BuildEnvironment interface a bitJack Nagel
2012-12-22Try to find XQuartz via pkgutil if mdls failsJack Nagel
c.f. #16296.
2012-12-22doctor: add helper for printing file listingsJack Nagel