aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2012-08-18Add small DSL for defining comparatorsJack Nagel
2012-08-18outdated: use new version comparison machineryJack Nagel
2012-08-18keg: add method to return the corresponding VersionJack Nagel
2012-08-18Add support for custom version schemesJack Nagel
A version scheme is a class that inherits from Version and reimplements Version#<=>. This will allow formulae to specify a custom comparison method that will be used instead of the default, for cases where the default is insufficient.
2012-08-18SoftwareSpec: simplify conditionalJack Nagel
2012-08-18Add Version#detected_from_url?Jack Nagel
2012-08-18Replace version strings with Version objectsJack Nagel
2012-08-18Further version test refactoringJack Nagel
2012-08-18Move version detection to Version classJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Initial version comparison implementationJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Preliminary version test refactoringJack Nagel
2012-08-18Add Version classJack Nagel
2012-08-17Add Xcode 4.4.1 to standard compilers mapJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17Remove executable bits from audit.rb and bottle.rbJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17Fix syntax error, sorry about that.Max Howell
Didn't test properly, it was a side-fix. Bad mxcl.
2012-08-17Stop warning about CLT w/o XcodeMax Howell
Also made the latest_versions checks smarter. Hopefully correct too.
2012-08-17Add special :xcode dependencyAdam Vandenberg
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17Increment copyright year in LICENSEJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-15FormulaInstaller: filter ARGV when testing for installed depsJack Nagel
In FormulaInstaller#install, needed_deps is created without first filtering ARGV for flags like --HEAD. In practice, this means that sometimes needed_deps will contain dependencies that are actually already installed; --HEAD causes Formula#installed_prefix to differ and thus checking Formula#installed? will result in false negatives. This can trigger weird bugs; for example, Homebrew/homebrew#10380, where the "Installing foo" header is displayed even though no dependencies were previously installed. Fix this by filtering ARGV before testing for installed dependencies, and do the same for requirements to maintain symmetry, and because some requiremnts check Formula#installed? as well. Fixes Homebrew/homebrew#10380. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14Don't print an empty line if all requirements are satisfiedJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14Recursively expand requirements in FormulaInstallerJack Nagel
Currently FormulaInstaller "forgets" about the requirements of dependencies, as dependencies are recursively expanded by the first FormulaInstaller instance, and then ignored by subsequent instances to prevent duplicate installation attempts. These requirements then have their messages displayed, but the fatal check is skipped and thus no exception is raised. Now that we have Formula#recursive_requirements, we can mirror what we are doing with dependencies and recursively expand requirements up front. While at it, fix a bug in determining Requirement equality that resulted in unique requirements being eliminated from a formula's set of recursive requirements. Fixes Homebrew/homebrew#12290. Fixes Homebrew/homebrew#14084. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14build: expand requirements recursively when modifying ENVJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14--config: remove confusing XQuartz annotationJack Nagel
Apple's X11 is XQuartz, but this can be confusing, and is ultimately unnecessary for debugging purposes. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14Improve libiconv diagnostic and suggestionMax Howell
This is coming up a lot at the moment, so here is an attempt to be more helpful.
2012-08-14`brew doctor -D` (diagnostic-dump)Max Howell
-D is now the switch for diagnostic-dumps. Let it be so. Shows how long each doctor method takes in a sorted table at end. I used this to move the two slowest methods to the end of the doctor run so that as much useful information can be shown as quickly as possible. Also now possible to specify on command line which tests should be run.
2012-08-14`brew irb` fixMax Howell
Broke when I removed `require 'formula'` from ARGV.rb.
2012-08-13options: Print "--" in option name for --compactMisty De Meo
This was a regression which caused the bash completion script to fail to complete formula options.
2012-08-13Uninstall keg if error during build & tab creationMax Howell
Previously if error occurred in code around the logic you'd get a keg that is installed without a tab, which breaks brew.
2012-08-13Don't fail if ENOENTMax Howell
2012-08-13brew cleanup removes .DS_Store filesMax Howell
Probably slow, but we hate these fuckers.
2012-08-13Formula.select and Formula.installedMax Howell
2012-08-13Encourage clicks on issues linkMax Howell
2012-08-12Add :when_xquartz_installed as a keg-only reasonJack Nagel
Using :when_xquartz_installed will tell the keg-only machinery to activate if XQuartz is installed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12Refactor `brew audit`Jack Nagel
2012-08-12Fix writing build options to install receiptJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12Don't require the WHOLE of Homebrew from ARGV.rbMax Howell
This was slowing down every instantiation of brew significantly. Hopefully doesn't break anything that had become accustomed to not having to require 'formula' or 'keg'. /cc @mikemcquaid
2012-08-12tests: require string extension before exceptionsJack Nagel
exceptions.rb now needs String#undent when it is loaded. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12BuildOptions: store option tuples in a SetJack Nagel
As options are stored in an object owned by the eigenclass of a formula, options defined in the Formula#options method can be added multiple times if the formula is instantiated multiple times. Store them in a set to prevent duplicates. Fixes Homebrew/homebrew#14133. 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-11Fix normalization of old- and new-style optionsMisty De Meo
When combining the set of old-style and new-style options, make sure that the leading "--" is stripped. Fixes displaying options in `brew options`, and the exotic case of declaring options using the old syntax and then checking them with `build.include?`
2012-08-11options: Don't add "--" to options that have itMisty De Meo
2012-08-11Don't warn uses on :fails_with compiler blocks.Mike McQuaid
Fixes Homebrew/homebrew#14121.
2012-08-11options: fix missing leading "--" in outputJack Nagel
Closes Homebrew/homebrew#14124. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-10remove trailing whitespaceAdam Vandenberg
2012-08-10Be more verbose when users insist on being sudoersMax Howell
If you google for "Cowardly refusing to sudo brew" you get a lot of confused users who didn't read any of the Homebrew documentation and then had a hissy-fit.
2012-08-09Deprecate ancient formula syntaxJack Nagel
Closes Homebrew/homebrew#13444. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-09New style is for option descriptions to not end with periodsAdam Vandenberg
2012-08-09Document dependencies.rbAdam Vandenberg
2012-08-09dev_tools_path: Don't trust exit status of xcrunMisty De Meo
A user on IRC was getting strange results from MacOS.dev_tools_path. It turns out that xcrun's exit status is not always reliable - if xcrun is a shim and not able to locate the real xcrun, it will exit 0 despite not actually doing what it was asked. Instead check to see if the stout is empty.
2012-08-09create: Fix indentation for :x11 depMisty De Meo