aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirement.rb
AgeCommit message (Collapse)Author
2018-01-23requirement: odeprecated for default_formula usage.Mike McQuaid
2018-01-23requirement: make deprecated stuff unsupported.Mike McQuaid
2018-01-23requirement: call satisfied? from modify_build_environment.Mike McQuaid
2018-01-14Deprecate default_formula Requirement DSLMike McQuaid
This has been a nightmare in terms of the complexity to our dependency system and the whack-a-mole required on bugs. If a Requirement resolves to a Formula it should just use `depends_on "formula"` instead. This matches the effective behaviour all users of bottles (the vast majority of users and installs) and what we're doing in Homebrew/homebrew-core.
2017-12-08X11Requirement: Inherit from generic class [macOS]Shaun Jackman
Fix the warning: already initialized constant X11Requirement
2017-11-03requirement: convert Cellar path to opt path.Mike McQuaid
2017-11-03requirement: don't add /usr/local/{bin,sbin}.Mike McQuaid
This should be considered a requirement bug if it's added.
2017-11-03requirement: prepend rather than append PATH.Mike McQuaid
Otherwise this ends up behind e.g. `/usr/bin` so is pretty useless.
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-07-30formula_installer: use default_formula for bottlesMike McQuaid
This was the original, intended functionality before this was broken in fe117bf79b244c42b7e4049d353c3c003eae4880. Fixes https://github.com/Homebrew/homebrew-core/issues/13680.
2017-06-10Autocorrect Rubocop Style/PerlBackrefs.Mike McQuaid
2017-05-15Use scoped RSpec matchers.Markus Reiter
2017-04-30Make `PATH` enumerable.Markus Reiter
2017-04-30Use `PATH` where possible.Markus Reiter
2017-04-22More deprecations.Mike McQuaid
Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
2017-03-25formula_installer: tweak req formula additions.Mike McQuaid
Rather than just checking if a requirement's dependency is installed or not check if the requirement was actually satisfied by a particular formula rather than e.g. just having a `default_formula` defined.
2017-01-11requirement: get formula from satisfy.Mike McQuaid
If satisfy returns a `Pathname` from `which` then we can use that to infer a formula dependency from that `Requirement`.
2016-10-06“Homebrew Cask” -> “Homebrew-Cask”Markus Reiter
2016-09-27Merge pull request #1004 from apjanke/print-requirementsMike McQuaid
info: print requirements
2016-09-24info: include versions and other details in Requirements displayAndrew Janke
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-23Style/Alias: Prefer `alias`.Markus Reiter
2016-09-23Fix DoubleNegation.Markus Reiter
2016-09-23Fix RuboCop CaseEquality.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-07-11requirement: more obvious error message.Mike McQuaid
Make it more obvious which class was unsatisfied to produce this error message.
2016-07-01requirement: update cask wordingDominyk Tiller
We now have "magic" to automatically handle `brew cask` and `brew bundle` calls without needing to tap those taps manually beforehand. Let's reflect that in this wording for consistency. Closes #427. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-13Fix typo [ci skip]Satoshi Ohmori
Closes Homebrew/homebrew#48008. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-03utils: add which_allXu Cheng
Similar to which, except it returns all of paths where binary is found. i.e. it's equivalent to `which -a`.
2015-12-15Allow multiple option_names in dep/reqs.Mike McQuaid
This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-01remove Requirement#pour_bottle?Xu Cheng
It's never used since a0a93f1b3b7b2be9b8a319be91086ffe220f8e32. Closes Homebrew/homebrew#43462. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20Requirement: support tap formula as default_formulaXu Cheng
Closes Homebrew/homebrew#43107. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-07requirement: allow access default_formula directlyXu Cheng
2014-12-28requirement: add cask and download attributes.Mike McQuaid
Print out the message pointing to the Cask and/or download location too.a
2014-12-06Remove {start,stop}doc as we're using Yard now.Mike McQuaid
2014-11-12Fix Requirement equalityJack Nagel
2014-11-12Don't allocate arrays in Requirement#hashJack Nagel
2014-10-09Use alias_method instead of an extra ivarJack Nagel
2014-09-24Generate RDoc documentation.Mike McQuaid
This is currently still very messy and we probably want to work out the best way to declare what parts of our DSL/what files are "public". Still, even if this is a WIP I'd rather get something committed sooner rather than later and start iterating on this as a replacement for `example_formula.rb` and the formula cookbook. To test: ```bash cd $(brew --prefix)/Library/Homebrew && \ rdoc formula.rb requirement.rb utils.rb &&\ open doc/index.html ``` Closes Homebrew/homebrew#32470.
2014-08-14Remove two more unnecessary default argumentsJack Nagel
2014-07-07Eliminate some indirection in evaluating requirement env blocksJack Nagel
2014-07-07Don't set @env on instancesJack Nagel
2014-07-07Keep DSL related code in one placeJack Nagel
2014-07-03Replace ComparableSet with a Requirements collectionJack Nagel
2014-07-02Move require into method to avoid circular requireJack Nagel
There is a nasty circular dependency here: formula.rb requirement.rb extend/ENV.rb extend/ENV/shared.rb formula.rb Probably the information that the build environment needs from formula should be passed in at runtime, but that seems hard and I really just want to be able to run the tests with warnings turned on. :/
2014-07-01Always use class.name to build inspect stringsJack Nagel
2014-06-12Prefer self.class.name to self.class.to_sJack Nagel
2014-05-30Deprecate implicit build-time requirementsJack Nagel
2014-04-03requirement: add pour_bottle? method.Mike McQuaid
Allows disabling bottles from requirements.