aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2012-10-29Add support for 7zip archivesSijawusz Pur Rahnama
Closes Homebrew/homebrew#15723. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-28brew-update: Guard non-directory files in TapsCharlie Sharpsteen
Skip any entries returned by `Dir["Library/Taps/*"].each` that are not directories.
2012-10-28formula: shorten path helpersAdam Vandenberg
2012-10-28debrew: formula debugging for homebrewCamillo Lugaresi
A new feature for easing the pain of working with complex formulas, or formulas for large packages. When running brew in debug mode (-d), if an exception propagates outside the formula's install method, you now get a menu which lets you return to the point where the exception was raised and perfom several useful actions, such as: - printing a backtrace - entering IRB to examine the context and test ruby code - entering the debugger (if ruby-debug is available) - entering a shell - ignoring the exception or proceeding with the raise as normal Signed-off-by: Max Howell <mxcl@me.com> * Fixed conflict in build.rb. * Removed old debug handling in Formula.brew. Closes Homebrew/homebrew#10435.
2012-10-28Specify where to get the CLT packageMax Howell
2012-10-28Homebrew should not ignore curlrcStephen Nelson
Added doctor check for .curlrc rather than silently ignoring it (#13836). Closes Homebrew/homebrew#15419. Signed-off-by: Max Howell <mxcl@me.com> Removed test in doctor where it actually curl'd a file. It's enough to warn if the curlrc exists. I understand people want to remove the warnings, but the point in the doctor is to help diagnose and not to be some ramification of your UNIX system.
2012-10-28Use cc -E, not cpp -E. Fixes Homebrew/homebrew#15402.Max Howell
2012-10-27Pathname: add exec and jar helpersAdam Vandenberg
Closes Homebrew/homebrew#13318.
2012-10-25tests: define assert_empty for Ruby <= 1.8Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25ComparableSet#merge returns selfJack Nagel
Set#merge is supposed to return self, and Formula#recursive_requirements depended on this being true. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25test_cleaner: add missing requireJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25Allow requirements to record tagsJack Nagel
To allow depends_on :x11 => :optional and friends to work as expected, make requirements record any tags and add special handling to the X11Dependency to record both a minimum version and additional tags. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25Move requirement subclasses to a separate fileJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-24FormulaInstaller: disambiguate show_header usageJack Nagel
show_header should default to false (we don't want to display it in the case of installing a single formula without dependencies), but it only worked this way by accident. The assignment "show_header = true" creates a local variable named show_header, and in the case where needed_deps is empty and this assignment is not actually executed, the latter usage evaluates the local variable instead of calling the method. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-24Return the block value in ARGV.filter_for_dependenciesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-24doctor: check that Xcode prefix actually existsAdam Vandenberg
Closes Homebrew/homebrew#14373.
2012-10-24Cleaner: add (commented-out) debugging information for permission changesAdam Vandenberg
The cleaning step changes permissions on files. Added a commented-out block that will show permission changes when doing verbose builds. Since this output is not generally useful for even normal verbose builds, added as commented-out code (I'm sorry) so that maintainers can uncomment it when this functionality is needed for debugging.
2012-10-23Make --ignore-dependencies work againAdam Vandenberg
2012-10-23Fix Keg testsMisty De Meo
* unreverse expected/actuals * don't assume linked file order is guaranteed - it wasn't!
2012-10-22Add relinking instructions.Adam Vandenberg
Closes Homebrew/homebrew#15488.
2012-10-22Latest Xcode is 4.5.1Adam Vandenberg
2012-10-21Allow varags to skip_cleanAdam Vandenberg
2012-10-21audit: loosen ARGV checkAdam Vandenberg
2012-10-20brew ln --force is now brew ln --overwriteMisty De Meo
* Renames --force to --overwrite, freeing up brew ln --force for Homebrew/homebrew#13349 * Changes --dry-run to preview linking by default, rather than overwriting. An overwrite dry-run can be simulated via both --dry-run --overwrite * Adds some basic Keg tests
2012-10-19Sanity checkAdam Vandenberg
2012-10-16Add Jenkins version matching (and test).Mike McQuaid
2012-10-16brew-unpack: don't attempt to mv the build directoryJack Nagel
When the current working directory is the root of the build tree, copy it instead of moving it, otherwise an exception will be raised when we try to clean up the build tree later. Noticed when unpacking the vim source tree from a mercurial checkout. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15Reduce code footprint of standard compilers mapJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15Flatten share_mkpathsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15Test coverage for DownloadStrategyDetectorJack Nagel
While at it, make it use class methods instead; no reason to instantiate an object for this. Eventually there should be some functional tests for the individual strategies as well. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15GitDownloadStrategy: avoid unnecessary checkoutJack Nagel
By default, git checks out the fetched ref after cloning the repo, but this is unnecessary as we explicitly check out the desired ref during staging. This also silences some unnecessarily confusing output. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15GitDownloadStrategy: silence checkout actions in non-verbose modeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15GitDownloadStrategy: silence status checkJack Nagel
"git status -s" is used to detect if the repository was corrupted during an interrupted clone, but it can leak output to the terminal, so use quiet_system. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15Manage Requirements using ComparableSetMisty De Meo
ComparableSet only allows a single object of a given class, choosing the object with the greatest value. This was mainly created for Requirements, so that, e.g., two X11Dependencies of differing strictness don't both end up in the same requirement set. Fixes Homebrew/homebrew#15240.
2012-10-11wxwidgets: A more common name for wxmac.samueljohn
- Change the blacklist to hint that we include wxpython with wxwidgets. Closes Homebrew/homebrew#15407. Signed-off-by: Max Howell <mxcl@me.com>
2012-10-09Don't munge tapped formula names in Formula.factoryJack Nagel
This started happening as a result of bbc167b, which avoids reloading previously defined formulae. The exception alters its message if the name parameter appears to be a tapped formula, but this is lost if we only pass in the "stem" of the pathname. Long-term this probably needs some restructuring, perhaps with a separate exception for tapped formula, but for now this should re-enable the more useful error message. Fixes Homebrew/homebrew#15374. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-06Advise `brew update` before filing issues about compiler versionsJack Nagel
2012-10-05pluralize the word 'Formula' in reportsChristian Schlensker
Closes Homebrew/homebrew#15321. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-04Don't count mkpath in ObserverPathnameExtensionMisty De Meo
mkpathed directories aren't really "linked" or "unlinked" per se, and link/unlink handle directories differently. It's easier just to ignore them, which finally synchronizes link/unlink counts.
2012-10-04Keg#unlink: use ObserverPathnameExtensionMisty De Meo
#link was using the extension but #unlink wasn't, so the counting criteria were potentially different and `brew unlink` was ignoring --verbose.
2012-10-04Keg#unlink: check file comes from the right kegMisty De Meo
For real this time. This makes sure that files won't be unlinked if they resolve into other kegs. For example: if fish and fishfish are both installed, with fishfish linked and fish unlinked, `brew unlink fish` would unlink some files that resolve into fishfish's keg.
2012-10-03Add Xcode 4.5.1 to compiler mapJack Nagel
Closes Homebrew/homebrew#15282. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-03doctor: fix iconv dylib nameAdam Vandenberg
2012-10-03Fix use of ISSUES_URL.Mike McQuaid
2012-10-02Replace mentions of easy_install by pipsamueljohn
Use this chance to correct minor typos. Closes Homebrew/homebrew#15242. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-01superenv: Add brewed-python bin to PATHMax Howell
A required special case since formula that use python can optionally use system python or Homebrew python. We'll probably need more of this sort of thing.
2012-09-30Don't use bottles for HEAD, devel or universal.Mike McQuaid
2012-09-30Add .sh to list of valid library extenions.Jason A. Donenfeld
As discussed with mistym, it's not only compiled code that goes in /usr/lib, but any types of libraries. As such, .pm was added to the valid extensions list a while back. Unfortunately, .sh was not added, even though configuration includes and platform function library shell files are often put in /usr/lib as shellscript libraries. This patch adds .sh to the list of valid library extensions. Closes Homebrew/homebrew#14993. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-29tests: set newly-visible global constantsJack Nagel
The changes to error ouput and logging require a few more things to be visible during installation tests. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-29Restore HOMEBREW_LOG functionalityMax Howell