aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ARGV.rb
AgeCommit message (Collapse)Author
2013-09-01Allow forcing bottle installation.Mike McQuaid
2013-08-30Add --cc= syntax for selecting compilersMisty De Meo
2013-08-28Allow building bottles with custom architecturesMisty De Meo
This allows overriding the "oldest CPU" behaviour - for instance, to build Intel bottles for a newer CPU than Core 2, to build a PPC bottle with or without Altivec on the same computer, etc.
2013-07-17add ARGV.valueAdam Vandenberg
2013-06-26ARGV: filter build-bottle from dependencies.Mike McQuaid
Fixes Homebrew/homebrew#20682.
2013-06-22ARGV: ensure ? methods return truth values.Mike McQuaid
2013-05-20Simplify implementation of ARGV.flag? and .switch?Jack Nagel
2013-03-01Add environment variable to build bottles.Mike McQuaid
2013-03-01Support 32-bit 10.6 bottles.Mike McQuaid
Closes Homebrew/homebrew#17735. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-26Move option comparison into BuildOptionsJack Nagel
2013-01-10Restore ARGV even if an exception is raisedJack Nagel
2013-01-01Add --homebrew-developer flagMike McQuaid
2012-12-04Improve bottle error messages.Mike McQuaid
On installation or creation of a bottle error out of the current machine does not support bottles. References Homebrew/homebrew#16291.
2012-10-24Return the block value in ARGV.filter_for_dependenciesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-30Don't use bottles for HEAD, devel or universal.Mike McQuaid
2012-09-18Fix building bottles from source.Mike McQuaid
2012-09-17ARGV: add .jsonMisty De Meo
Used by brew info; may be used by other commands in the future.
2012-08-25Miscellaneous bottle code cleanup.Mike McQuaid
2012-08-25Fix ARGV and bottles circular dependency.Mike McQuaid
2012-08-25Move used_options and unused_options to ARGV.Mike McQuaid
2012-08-21Support ENV[VERBOSE]Max Howell
2012-08-18Add ARGV.ignore_deps?Jack 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-07-09ARGV: add .dry_run? methodMisty De Meo
Add an ARGV.dry_run? helper method for '--dry-run'/'-n' now that '-n' is being used as a git-style dry-run in two commands. Closes Homebrew/homebrew#12898. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-06-10Add ARGV.build_stable?Adam Vandenberg
2012-04-10ARGV: use include? for --HEADJack Nagel
ARGV.build_head? will return true if the typo '-HEAD' is passed because it uses flag? to detect the option. However, we only filter the exact spelling of '--HEAD' in ARGV.filter_for_dependencies, and thus the HEAD property is undesirably passed to deps during installation. Since we never advertised '-H' as a valid short option for '--HEAD', just use include? instead of flag?. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-19Be more helpful about how to resolve this issueMax Howell
2012-03-19If no formula but multiple kegs, advise resolutionMax Howell
In this case the user will simply have to delete all but one keg in order to use the command that uses ARGV.kegs. Refs Homebrew/homebrew#11050.
2012-03-10Revert "Always build bottles universally."Mike McQuaid
This reverts commit 72a477f2734939d4c5805247588c4cdea69b5383.
2012-03-10Always build bottles universally.Mike McQuaid
2012-03-10Move most bottle stuff to a bottles.rb file.Mike McQuaid
2012-03-07If multiple kegs, default to formula kegMax Howell
If it exists, ARGV.kegs will return the Formula.prefix keg for each rack examined. So for ARGV=[wget, foo] and the following Cellar (wget/1.11, wget/1.12, foo/1.0) you'll get [wget/1.12, foo/1.0] from ARGV.kegs provided 1.12 is the formula version of wget.
2012-03-06Proper single character switch handlingMax Howell
Includes a test. So now you can do `brew cleanup -ns` and it will work.
2012-03-06Don't require formula files for `brew rm --force`Max Howell
In fixing this I also made it so that ARGV.kegs will return the LinkedKeg if the symlink is set. Which is almost always is. This neatly avoids most multiple-kegs issues. Fixes Homebrew/homebrew#10685.
2012-02-03don't complain if args are emptyAdam Vandenberg
2012-01-16Add option for building bottles.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-02Standardize 32 bit build switchAdam Vandenberg
2011-11-27Fix array concatenation in ARGV.filter_for_dependenciesCharlie Sharpsteen
Gah. This was supposed to be in the last commit, but I forgot to `--amend` it.
2011-11-27Don't suppress `--verbose` while installing depsCharlie Sharpsteen
Unless the `--quieter` flag is passed. Closes Homebrew/homebrew#8723.
2011-11-27Suppress `--devel` while installing dependenciesCharlie Sharpsteen
Unless the dependency is explicitly passed to `brew install --devel`.
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-21Define and use ARGV.build_devel?Jack Nagel
Often it is useful to provide a development build in addition to the stable release or HEAD download. Signed-off-by: Jack Nagel <jacknagel@gmail.com> Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-09-02Allow 'brew link' to work with URL-based formulaeJustin Hileman
Closes Homebrew/homebrew#7373. Signed-off-by: Max Howell <max@methylblue.com> I added some comments.
2011-07-31Don't install bottles in non-default HOMEBREW_PREFIX.Mike McQuaid
2011-07-29Build from source (for now) unless on Lion.Mike McQuaid
Longer-term we'll try and use install_name_tool to fix Lion bottles so they run fine on 10.5 and/or 10.6. Closes Homebrew/homebrew#6699.
2011-06-22Build from source when we've options or 10.5.Mike McQuaid
2011-06-21Remove redeclared method.Mike McQuaid
2011-06-08Add changes to Homebrew internals for bottling.Mike McQuaid
2011-05-07Fix misspelled method name: Formula.canonical_nameJack Nagel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-23Add ARGV.build_universal?Adam Vandenberg