aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2011-11-29audit: check for build-time dependenciesJack Nagel
This can be made more robust in the future when we stop throwing away the ':build' type flag in Formula#depends_on. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-29brew doctor: Ignore config files in /usr/X11R6/binCharlie Sharpsteen
`/usr/X11R6` is an Apple-provided symlink to `/usr/X11`. Fixes Homebrew/homebrew#8881.
2011-11-29brew doctor: Note there is no GCC in XCode 4.2+Charlie Sharpsteen
Should help advert confusion surrounding the "could not find gcc 4.2.x" message recieved by Lion users running the latest version of XCode. Fixes Homebrew/homebrew#8876.
2011-11-29Correct cmake syntax in formula templateMisty De Meo
Closes Homebrew/homebrew#8879. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-28uses.rb: Pass a block to map instead of a ProcCharlie Sharpsteen
Passing a `Proc` doesn't work in Ruby 1.8.6 which causes `brew uses` to fail on Leopard.
2011-11-27Move brew-depstree into `brew deps --tree`Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-27Re-work ARGV filtering to properly handle --HEADCharlie Sharpsteen
Previously, stripping arguments like `--HEAD` for dependencies failed because that flag affects the installation prefix encoded into formula objects. The previous implementation of `ARGV` filtering tried to contain all changes to a single method call before the `FormulaInstaller` forks. This update spreads things out a bit: - The Homebrew `ARGV` extension adds a new method, `filter_for_dependencies` which strips flags like `--HEAD`, yields to a block, then restores the original contents of ARGV. - The `explicitly_requested?` test, which returns true or false depending on if a formula object is a member of `ARGV.formulae`, is now a method of `Formula` objects. - `FormulaInstaller` objects now execute the installation of dependencies inside an `ARGV.filter_for_dependencies` block if the dependency was `explicitly_requested?`. Fixes Homebrew/homebrew#8668. Closes Homebrew/homebrew#7724.
2011-11-27audit: remove --strictAdam Vandenberg
2011-11-26doctor: remove terminal width check for curlJack Nagel
This ended up being noise for some users. We need a better set of steps to trigger the bug in order to create a good doctor check; patches welcome from users who are encountering this issue. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-26doctor: use newer gcc version methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-25brew-config: remove recommended compiler versionsAdam Vandenberg
The recommended compiler versions printed from `brew-config` are out of date and misleading. The recommendation is always "Run the latest version of Xcode available for your platform".
2011-11-25Display clang version in --config outputJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-25doctor: remove outdated XCode version referenceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-23audit: check for MacPorts patches from trunkJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-22options: treat outdated brews as installedJack Nagel
`brew options --installed` will now "do the right thing". There is getting to be a small but noticeable amount of code duplication among commands that take options like "--installed" or "--all"; it may be worth factoring this out into a method that will return a collection of formula objects based on the options that are passed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-21audit.rb: Check version strings by defaultCharlie Sharpsteen
Tired of telling people that version numbers are redundant. Just check it by default since the `--strict` flag to `brew audit` is not well advertised.
2011-11-20Delete temp directory created during brew doctorJonathan Grochowski
Running brew doctor creates a temporary directory in $HOMEBREW_TEMP or /tmp but does not clean it up afterwards. This patch deletes the directory created to prevent polluting $HOMEBREW_TEMP or /tmp with empty directories. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-18audit: check for ARGV.flag? in formulaeJack Nagel
We don't want single letter options like '-v' or '-d' to unintentionally trigger formula-specific options. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-16Don't include receipt in `brew list` outputCharlie Sharpsteen
Fixes Homebrew/homebrew#8615.
2011-11-15audit: don't check duplicate URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-13info: display used options for installed formulaeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-10doctor: check_git_status in correct locationJack Nagel
This would silently fail if HOMEBREW_REPOSITORY != HOMEBREW_PREFIX, which is obviously a valid Homebrew setup. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-10doctor: document curl/terminal width issueJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-10doctor: warn about wide terminalsJack Nagel
A terminal width of 262 or greater can trigger a buffer overflow in curl's progress bar code, resulting in a segfault and aborted downloads. Warn about this. cf Homebrew/homebrew#8521. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-10doctor: minor grammatical fixJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-07cleanup: add an option to perform a 'dry run'Jack Nagel
Sometimes you want to know what `brew cleanup` will do before it actually removes anything. Introduce a '-n' option (chosen to match other UNIX tools) to do this. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-02audit: check for build_universal? calls if --universal unusedOleg Oshmyan
Closes Homebrew/homebrew#8123. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-02audit: check for empty sha256 checksumsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-22Remove debian mirror check; it is just noiseAdam Vandenberg
2011-10-18doctor: correctly detect CLICOLOR_FORCEJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-18audit: complain more about tabsAdam Vandenberg
2011-10-15audit: check mirror URLsJack Nagel
This will actually throw some possibly unwanted warnings, e.g. whining about using mirrors.kernel.org for Debian software; we might only want that warning for the default URL. Perhaps mirrors deserve their own audit_formula_mirrors, but rather than duplicate code, let's just check them against the standard criteria for now. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-10doctor: check git versionJack Nagel
Checking out over HTTP/HTTPS from GitHub requires git 1.6.6, as GitHub only allows Smart HTTP transport. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-09fetch: use correct sha256 instance variableJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-03doctor: warn about expired SSL certs on LeopardJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-02audit: improve SF 'use_mirror' detectionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-28audit: match #{prefix}/libexec and prefix+'libexec'Jack Nagel
These were being picked up as just "#{prefix}/lib" and prefix+'lib' due to the eagerness of the regex. Reordering "lib" and "libexec" will take care of it; I couldn't think of a more clever solution. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-27doctor: remove redundant sentenceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21audit: recognize options used with 'ARGV.flag?'Jack Nagel
A few formula use ARGV.flag? instead of ARGV.include?. This made `audit` recognize a few undocumented instances of a '--devel' option, but we can just ignore that like '--HEAD' for now, and change the behavior if we decide they need to be documented explicitly in each formula. cf. Homebrew/homebrew#7456. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19doctor: only check git status if repository existsJack Nagel
Closes Homebrew/homebrew#7722. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-20More docs for `brew create` generated formula testsMax Howell
To assist those new to stuff.
2011-09-20Allow `brew update --rebase`Max Howell
2011-09-19mirror support: Add mirror method to Formula.rbCharlie Sharpsteen
Mirrors can now be declared using the `mirror` method which works similar to `depends_on` and takes the same arguments as `url`. The formula class now has a public `fetch` method that cycles through the mirror list if the downloader for the primary URL throws a `DownloadError`. Other brew commands, like brew-fetch, also benefit from mirror support by using this method. Closes Homebrew/homebrew#7574.
2011-09-16doctor: restore some line breaksAdam Vandenberg
2011-09-16brew-upgrade: Fix installation of dependenciesCharlie Sharpsteen
Fixes Homebrew/homebrew#7528. Closes Homebrew/homebrew#7572.
2011-09-16Return Formula objects from `outdated_brews`Charlie Sharpsteen
Previously, `outdated_brews` returned a list of lists---each containing three components of a Formula object: - f.rack - f.name - f.version Frequently more information is required which necessitates back-casting from `name` to a Formula object---simpy returning formula objects removes this step.
2011-09-16Centralize definition of `rack` in formula.rbCharlie Sharpsteen
`rack` is a commonly used alias for `formula.prefix.parent`---so common that it gets defined and used quite a bit. This patch makes `rack` an official method of the `Formula` class.
2011-09-15Check Cellar can be made before installing stuffMax Howell
Refs Homebrew/homebrew#5188.
2011-09-13audit: improve GNU url checkJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-13audit: correctly match SourceForge https URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>