aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ARGV.rb
AgeCommit message (Collapse)Author
2015-04-09preliminary write control only sandboxXu Cheng
Closes #38361. Signed-off-by: Xu Cheng <xucheng@me.com>
2014-11-30Allow searching/installing Homebrew Casks.Mike McQuaid
People want to install things like GIMP using Homebrew so let's make it easier for them to find a decent installation method. Closes #34496. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-11-03Add ARGV.git?Jack Nagel
2014-08-29Add a method for retrieving only flags from ARGVJack Nagel
2014-08-28Simplify implementation of ARGV.flag? and ARGV.switch?Jack Nagel
2014-08-28Use two-argument form of String#sliceJack Nagel
2014-08-28Implement ARGV.named in terms of ARGV.options_onlyJack Nagel
2014-08-28ARGV.spec should be privateJack Nagel
2014-07-17Remove commentary from error messagePhillip Calvin
It might be best not to use the word "lame" here, as it's often considered to be an ableist slur. Closes #30915. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-02Accept -s as shorthand for --build-from-sourceJack Nagel
This is experimental and will be reverted if it causes problems. Closes #30392.
2014-06-26Use canonical_name in the exception messageJack Nagel
2014-06-26Use canonical_name when checking LinkedKegs and optJack Nagel
name is the user-provided string and may be an alias, path, or URL.
2014-06-26The rack variable is only used inside the block nowJack Nagel
2014-06-26Remove a dead branch from ARGV.kegsJack Nagel
rack cannot be nil at the point where FormulaUnavailableError is raised, so we don't need a branch to deal with that.
2014-06-26Simplify NoSuchKegError conditionJack Nagel
dirs will be empty if the rack directory does not exist.
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-20Remove ARGV.filter_for_dependenciesJack Nagel
2014-06-20Decouple spec selection from ARGVJack Nagel
2014-05-27--help and --version only apply as first argumentAdam Vandenberg
This fixes external commands that provide their own help and version subcommands. Closes #26755.
2014-04-05Remove obsolete guards around canonical_name return valueJack Nagel
2014-04-05Avoid realpath where it is not necessaryJack Nagel
Symlinks in opt and LinkedKegs point directly at a keg in the cellar, so only resolving one symlink should suffice, and make it clear what path we are actually interested in.
2014-03-15Prefer opt prefix over linked keg entry when picking active kegJack Nagel
2014-03-15Add an extra sanity checkJack Nagel
2014-03-15Refactor ARGV.kegsJack Nagel
2014-03-15Use canonicalized name in NoSuchKegError messageJack Nagel
cf. #22778.
2014-03-13Simplify ARGV.filter_for_dependenciesJack Nagel
2014-03-13Make debug an installer modeJack Nagel
2014-03-13Make verbose an installer modeJack Nagel
2014-03-13Make interactive an installer modeJack Nagel
2014-03-13Add ARGV.envJack Nagel
2014-03-10Reduce the number of things that trigger ARGV.build_from_source?Jack Nagel
The newly generalized bottle implementation removes the need to defensively check for --devel, --HEAD, and others in this method.
2014-03-10Make build_bottle an explicit installer modeJack Nagel
2014-03-08Remove "--fresh" option from installerJack Nagel
Turns out that this doesn't really work at all. `brew install` _never_ reuses options in the first place, and using this option with `brew upgrade` results in some nasty corner cases in passing options to dependencies.
2014-02-14ARGV.help?: anchor to end of stringMisty De Meo
Fixes #26735.
2014-02-14brew: check for --help and friends in more of ARGVMike McQuaid
Let's check for e.g. --help anywhere in the ARGV array rather than just the first value to avoid brew upgrade --help causing problems. Closes #26675. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-11Revert "Recognize --head as an alias for --HEAD"Adam Vandenberg
This reverts commit c32ab0a35a2dfa9b593f759ef0ae8b7af077b0b7. There are other hard-coded uses of HEAD, in build_options for instance. These all need to be fixed before enabling this.
2014-02-09Recognize --head as an alias for --HEADMisty De Meo
Homebrew currently recognizes "--head" during the install process, but rather than actually fetch HEAD it just nags the user to use the correct option. Since we recognize the spelling anyway, this just promotes the lowercase version to an official alias. Closes #26555.
2013-12-19install: add --only-dependencies optionSteven Peters
The traditional approach to installing the dependencies of a formula is the following: brew install `brew deps formula` This approach ignores any options that are specified in the parent formula. This pull request adds a --only-dependencies option to brew install that installs the dependencies of a formula with optional flags, but returns before installing the parent formula. Closes #25272. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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 #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 #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