aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_support.rb
AgeCommit message (Collapse)Author
2017-01-17Add `keg_only :versioned_formula`.Mike McQuaid
This is used to indicate a formula is a version of another formula. This will be used to provide a consistent interface for older formulae versions and replaces the use of `conflicts_with`.
2016-09-18Use new "macOS" naming where appropriate.Mike McQuaid
Not quite a mass replacement as I've used OS X and Mac OS X where describing specific older versions and added compatibility methods for things in the DSL.
2016-09-17rubocop --auto-correct all remaining files.Mike McQuaid
But remove some manual `.freeze`s on constants that shouldn't be constants.
2016-06-05formula_support: don't fail without CLT/XcodeMartin Afanasjew
`Formula#keg_only?` could fail if it was invoked on a formula with a `:provided_until_xcode43` or `:provided_until_xcode5` reason given to `keg_only`, if neither the Command Line Tools nor Xcode was installed. Check whether Xcode is installed before querying the Xcode version. Closes #317.
2015-10-26BottleDisableReason: enforce the use of :disableBaptiste Fontaine
Closes Homebrew/homebrew#45337. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-23audit: warn about unknown bottle modifiersBaptiste Fontaine
This prevents typos like `bottle :uneeded` or `bottle :disable` Closes Homebrew/homebrew#45264. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-19Formula: add bottle disable DSLXu Cheng
2015-09-08formula_support: add Pre El Capitan keg_onlyDominyk Tiller
2015-08-04formula_support: add provided_pre_mavericksDominyk Tiller
Closes Homebrew/homebrew#42460. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-07-28KegOnlyReason: print only the explanation if there’s oneBaptiste Fontaine
Closes Homebrew/homebrew#42073. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-06-16"Mac OS X" -> "OS X" in copyJack Nagel
2014-09-12Don't use undent on keg-only reasonsJack Nagel
It will cut off the beginning of any interpolated lines. Fixes Homebrew/homebrew#32259.
2014-08-28gettext, readline: Add keg_only :shadowed_by_osxShaun Jackman
Closes Homebrew/homebrew#31951. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-08-08Remove another unnecessary default argumentJack Nagel
2014-05-12document FormulaConflictAdam Vandenberg
2014-04-03Add keg-only reason symbols for Xcode 4.3 and Xcode 5Jack Nagel
Closes Homebrew/homebrew#28095.
2014-04-01Make keg_only validation lazyJack Nagel
2013-09-14Move SoftwareSpec to a separate fileJack Nagel
2013-06-28Reject versions that aren't stringsJack Nagel
2013-06-28Detect versions in tag specsJack Nagel
Closes Homebrew/homebrew#18300. Closes Homebrew/homebrew#20891.
2013-06-28Simplify custom version scheme handlingJack Nagel
2013-06-09Separate formula conflicts from requirementsJack Nagel
Closes Homebrew/homebrew#20357.
2013-06-08Bottle DSL: allow checksums access.Mike McQuaid
2013-06-06Decouple bottle tags from MacOS.catJack Nagel
2013-06-06Use ivar accessorsJack Nagel
2013-06-04Extract attr_rw from Formula for reuseJack Nagel
Closes Homebrew/homebrew#20239.
2013-05-27Audit url/devel/head for redundant :usingAdam Vandenberg
2013-05-25Remove cat_without_underscores bottle methods.Mike McQuaid
2013-04-08Remove dead codeJack Nagel
This is initialized in #initialize.
2013-04-04Rename checksums.rb to match class nameJack Nagel
2013-03-28Suppress uninitialized instance variable warningsJack Nagel
2013-03-18Simplify SoftwareSpec checksum methodsJack Nagel
Reader methods for specific checksum types have been absent from the Formula class for some time, so there isn't any reason to expose them in SoftwareSpec, either. Thus, these methods now only act as setters, and #checksum should be used to access the constructed Checksum object.
2013-03-12Pass filename and lineno arguments to class_evalJack Nagel
2013-03-11Relocate bottles using install_name_tool.Mike McQuaid
This has two parts: 1. Bottles are temporarily relocated on bottling and tested if that is sufficient for them to contain no longer reference the prefix or cellar. If so, they are marked as relocatable. 2. On installation if bottles are marked as relocatable they will be relocated using install_name_tool to the current prefix and cellar. Closes Homebrew/homebrew#18374.
2013-03-09Remove redundant attr_readersJack Nagel
These are redefined later for use in the bottle DSL.
2013-03-09bottles: remove unused 'version' from DSL.Mike McQuaid
2013-03-01Add non-/usr/local bottles support.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01Add custom bottle URL support.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01Cleanup bottle DSL.Mike McQuaid
* Remove legacy url syntax. * Use revision instead of version. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-11Avoid nil in URL specsJack Nagel
2013-01-29Don't use underscores in (new) bottle filenames.Mike McQuaid
Closes Homebrew/homebrew#14270
2013-01-26Move BuildOptions to a separate fileJack Nagel
2013-01-26Refactor option handling internalsJack Nagel
Currently we handle options in several ways, and it is hard to remember what code needs an option string ("--foo"), what needs only the name ("foo") and what needs an Option object. Now that Option objects can act as strings and be converted to JSON, we can start using them instead of passing around strings between Formula objects, Tab objects, and ARGV-style arrays. The Options class is a special collection that can be queried for the inclusion of options in any form: '--foo', 'foo', or Option.new("foo").
2013-01-26BuildOptions: check has_option? for universal and 32-bitJack Nagel
2013-01-26BuildOptions: simplify setting descriptionJack Nagel
2013-01-26Options can be dumped as JSONJack Nagel
2013-01-26Options can be used interchangeably with StringsJack Nagel
We want to be able to use Option objects in place of strings and have this be transparent. Defining to_str means that methods like Kernel#system and Kernel#exec will be able to perform an implicit conversion.
2013-01-26Move option comparison into BuildOptionsJack Nagel
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-08-23Fix keg-only on pre-Mountain Lion formulae.Mike McQuaid