diff options
| author | Jack Nagel | 2013-01-23 00:26:28 -0600 | 
|---|---|---|
| committer | Jack Nagel | 2013-01-26 12:14:46 -0600 | 
| commit | 7a8935455b43273291b37d2e2f62757bb8fa705e (patch) | |
| tree | 427b6275b89d249d1b3d6a4d54a58ea96c968c43 /Library/Homebrew/build_options.rb | |
| parent | 0551dedf795c7516fd9c11cceeecfa93e4ff3fe3 (diff) | |
| download | homebrew-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/build_options.rb')
| -rw-r--r-- | Library/Homebrew/build_options.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb index 440e3ba78..1718bc4a0 100644 --- a/Library/Homebrew/build_options.rb +++ b/Library/Homebrew/build_options.rb @@ -3,7 +3,7 @@ require 'options'  # This class holds the build-time options defined for a Formula,  # and provides named access to those options during install.  class BuildOptions -  attr_writer :args +  attr_accessor :args    include Enumerable    def initialize args  | 
