aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
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
2012-08-09Remove options audit checkAdam Vandenberg
2012-08-09Fix info/options for new options dslAdam Vandenberg
2012-08-09Run each search_tap in a separate thread to speed things up.hazz
Closes Homebrew/homebrew#14066. Signed-off-by: Max Howell <mxcl@me.com>
2012-08-09fish completion: Remove dupe lines, fix commandsMisty De Meo
2012-08-09download_strategy: Use MacOS.locate to find svnsamueljohn
- So that Xcode-only systems don't fail to find svn. Closes Homebrew/homebrew#14080. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-09options: remove duplicate functionAdam Vandenberg
2012-08-08Add `option` to the DSLAdam Vandenberg
Closes Homebrew/homebrew#9982
2012-08-08Add modular x11 dependencies.Mike McQuaid
Fixes Homebrew/homebrew#13638.
2012-08-08Remove libpng and freetype blacklistMike McQuaid
2012-08-07Simplify conditionalJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07Automatically append shell completion caveatsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07Simplify printing conflicts in `brew info`Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07Fix typo in conflicts_with DSL methodJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07fix info commandAdam Vandenberg
2012-08-07Fix Xcode.versionMax Howell
I managed to remove a return while fixing this yesterday. The whitespace changes made the diff unreadable so I missed this regression. Why does this sort of thing still happen?
2012-08-07Document `brew tap --repair`Max Howell
2012-08-07`brew tap` by itself handles dashes in usernamesMax Howell
This stuff sucks. I'd like to just replace the dash with a directory division or tilde character. But this makes the code even more complicated, unless we can figure out how to migrate the taps.