aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_dependency_collector.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-23 00:26:28 -0600
committerJack Nagel2013-01-26 12:14:46 -0600
commit7a8935455b43273291b37d2e2f62757bb8fa705e (patch)
tree427b6275b89d249d1b3d6a4d54a58ea96c968c43 /Library/Homebrew/test/test_dependency_collector.rb
parent0551dedf795c7516fd9c11cceeecfa93e4ff3fe3 (diff)
downloadhomebrew-7a8935455b43273291b37d2e2f62757bb8fa705e.tar.bz2
FormulaInstaller: allow formulae to pass options to deps
Formulae can now pass build options to dependencies. The following syntax is supported: depends_on 'foo' => 'with-bar' depends_on 'foo' => ['with-bar', 'with-baz'] If a dependency is already installed but lacks the required build options, an exception is raised. Eventually we may be able to just stash the existing keg and reinstall it with the combined set of used_options and passed options, but enabling that is left for another day.
Diffstat (limited to 'Library/Homebrew/test/test_dependency_collector.rb')
-rw-r--r--Library/Homebrew/test/test_dependency_collector.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_dependency_collector.rb b/Library/Homebrew/test/test_dependency_collector.rb
index ded49f91f..3403fc089 100644
--- a/Library/Homebrew/test/test_dependency_collector.rb
+++ b/Library/Homebrew/test/test_dependency_collector.rb
@@ -1,5 +1,6 @@
require 'testing_env'
require 'dependencies'
+require 'options'
require 'extend/set'
module DependencyCollectorTestExtension