aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dependencies.rb
AgeCommit message (Collapse)Author
2012-07-27Deduplicate requirementsJack Nagel
Because of some quirks in how formulae are loaded, DSL methods invoked in the class definition are called multiple times. This results in, for example, duplicate dependencies and requirements. Code that iterates over requirements and takes some action for each can thus repeat things that shouldn't be repeated, like appending to environment variables. Make DependencyCollector's external_deps a Set, and define eql? and hash on Requirement to prevent these duplicates. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-27Requirement: add modify_build_environment methodJack Nagel
Rather than doing type introspection in build.rb, just define a method to perform the necessary environment setup for Requirements. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25Use new Xcode moduleJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-10Add :bsdmake dependencyAdam Vandenberg
2012-07-10All symbols for autotools dependenciesAdam Vandenberg
The symbol versions of :autoconf, :automake and :libtool only activate for OS X / Xcode combinations that do not provide autotools.
2012-07-10Refactor dependencies in preparation for autotools symbol supportAdam Vandenberg
2012-07-01Better error message for unknown dep symbolCamillo Lugaresi
2012-07-01Add depends_on :libpng as an alias to :x11Camillo Lugaresi
Some formulae ask for the x11 environment with ENV.libpng; mirror this in the new dependency form.
2012-07-01Simplify DependencyCollector#addCamillo Lugaresi
2012-07-01depends_on :x11 syntax supportCamillo Lugaresi
2012-05-01Fix Ruby warnings.Mike McQuaid
Fixes Homebrew/homebrew#11966.
2012-04-11Implement <=> for DependencyJack Nagel
Fixes Homebrew/homebrew#11587. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-20Fix Dependency equalityAdam Vandenberg
2012-03-20Allow a different package and import name for language deps.Adam Vandenberg
Some times the module to import is different than the module to install when dealing with external dependencies. This change allows an optional import name to be specififed when it is different from the module name. Closes Homebrew/homebrew#11078.
2012-03-10New external dependency implementation.Adam Vandenberg