aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
AgeCommit message (Collapse)Author
2014-08-16Simplify cxxstdlib_check implementationJack Nagel
The cxxstdlib_check method currently only supports one value, so we can just define the accompanying instance method when necessary. If we ever add more options we can back it with a data structure.
2014-08-16Remove the universal accessor from BuildOptionsJack Nagel
BuildOptions is now immutable (finally).
2014-06-22Remove obsolete constantJack Nagel
Formula that use this do not load anymore.
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-16Remove compat/brewkitJack Nagel
Formulae from the "brewkit" era are no longer compatible with the Formula class. This file was (unintentionally) removed from the $LOAD_PATH quite a while ago, and nobody has complained, so remove it.
2014-06-16Remove an internal method from compatJack Nagel
2014-04-23formula: move cxxstdlib methods to the class.Mike McQuaid
This allows disabling this checks when e.g. pouring bottles.
2014-02-24Implement fails_with_llvm compat method in terms of fails_withJack Nagel
2013-10-27Fix md5 compat layerJack Nagel
Fixes #23653.
2013-10-22Avoid comparing MacOS.version to floatsJack Nagel
2013-10-18Rename MacOS to OS::MacJack Nagel
2013-09-17Reimplement SoftwareSpec on top of ResourceJack Nagel
2013-08-19Rename HomebrewEnvExtension to StdenvJack Nagel
2013-05-10Reorganize compatJack Nagel
2013-05-10Remove ancient global methods from compatJack Nagel
2013-04-10Remove last use of deprecated Formula#recursive_depsJack Nagel
Fixes #19107.
2013-03-23Hardware: separate out CPU values into CPU moduleMisty De Meo
* CPU functions now exist in Hardware::CPU * Added compatibility functions in compat/hardware_compat.rb * Names are less specific to Mac hardware, e.g. CPU.family instead of Hardware.intel_family * Hardware::CPU.family works for both Intel and PowerPC * New helper methods on CPU, like .sse4? and .altivec? Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-03-20Move Formula.all to compatJack 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-18Reduce footprint of fails_with_llvm compat codeJack Nagel
2013-03-18Fix fails_with_llvm compatibilityJack Nagel
Fixes #18565.
2013-02-18Silence "`*` interpreted as argument prefix" warningsJack Nagel
2013-02-01Move MD5 deprecation warning into Pathname#md5Jack Nagel
This way it will print when the verification takes place, making it a bit more obvious which formula it refers to.
2013-02-01Add md5 support to compatibility, with deprecation warningJack Nagel
2013-01-26Dependency.expand_dependenciesJack Nagel
Move Formula.expand_dependencies into the Dependency class, and extend it to allow arbitrary filters to be applied when enumerating deps. When supplied with a block, expand_dependencies will yield a [dependent, dependency] pair for each dependency, allowing callers to filter out dependencies that may not be applicable or useful in a given situation. Deps can be skipped by simple calling Dependency.prune in the block, e.g.: Dependency.expand_dependencies do |f, dep| Dependency.prune if dep.to_formula.installed? end The return value of the method is the filtered list. If no block is supplied, a default filter that omits optional or recommended deps based on what the dependent formula has requested is applied. Formula#recursive_dependencies is now implemented on top of this, allowing FormulaInstaller to exact detailed control over what deps are installed. `brew missing` and `brew upgrade` can learn to use this to apply the installed options set when expanding dependencies. Move Formula.expand_deps and Formula#recursive_deps into compat, because these methods do not respect the new optional and recommended tags and thus should no longer be used.
2012-12-17Better reporting for MacPorts/Fink installationsJack Nagel
closes #15853.
2012-09-10Add deprecation warning to non-DSL fails_with_llvmJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10Clean up MacOS version method usageJack Nagel
The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard Ruby comparison methods. The old methods were moved to compat when the version comparison code was merged, and they must remain there "forever", but they should not be used in new code. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-28Add Version.slice to compat suiteMax Howell
Refs #14299.
2012-08-18Deprecate MacOS.version? style methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06Adjust XQuartz/X11 module naming schemeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-01Move X11 machinery into MacOS::XQuartz namespaceJack Nagel
In order to better support Xcode-only systems, where X11 libs and executables live under /usr/X11 but headers live in the SDK, move the x11_* helper methods into a new module. This allows us to keep some of the CLT/Xcode-only and Apple X11/XQuartz logic hidden from outside code, like ENV.x11. Since Apple's X11 is actually XQuartz, name the module "MacOS::XQuartz".
2012-07-25Split Xcode and CLT methods into separate modulesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-05Remove compat's implicit dependency on formulaJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Introduce new formula specsJack Nagel
2012-06-03std_cmake_args: Search for Frameworks lastCharlie Sharpsteen
Most Homebrew builds produce libraries, so CMake should give priority to libraries when resolving dependencies. Closes #12497. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-05-22Introduce std_cmake_args methodJack Nagel
This differs from the current std_cmake_parameters in that it returns an array instead of a string. Doing so makes dealing with it in formulae much more pleasant, and for new formula hackers, less surprising. std_cmake_parameters is retained in compat to maintain compatibility with external formulae. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-30Improve Formula.resolve_alias warning.Mike McQuaid
2012-04-01New fails_with infrastructureJack Nagel
- Formulae can now declare failures on any compiler. - FailsWithLLVM and associated formula elements have been moved to compat. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-13Adjust compat's fails_with_llvm callJack Nagel
handle_llvm_failure was moved into FailsWithLLVM and renamed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-03Move old ENV.use_foo? compiler methods to compatJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-02Improve compatibility for old formulaMax Howell
Allow compatibility to be disabled with --no-compat or HOMEBREW_NO_COMPAT environment variable.