diff options
| author | Adam Vandenberg | 2010-04-08 14:50:06 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-09 11:21:35 -0700 |
| commit | cfc8fca74d642d5b09d8b45a802f3114948ed32f (patch) | |
| tree | f19d2dab14b5f8ad967d1970fa255e719cc4f58c /Library/Homebrew/formula.rb | |
| parent | 72ef9f4aaa8c86aa422cb735eeba7f809e53a84c (diff) | |
| download | brew-cfc8fca74d642d5b09d8b45a802f3114948ed32f.tar.bz2 | |
Support jruby external dependencies.
* Add tests that run only if 'jruby' is installed.
* Note that if your formula has :jruby deps, it should likely
"depend_on 'jruby'" as well.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 66219e726..9b5e7254f 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -475,7 +475,7 @@ private def depends_on name @deps ||= [] - @external_deps ||= {:python => [], :ruby => [], :perl => []} + @external_deps ||= {:python => [], :perl => [], :ruby => [], :jruby => []} case name when String @@ -483,7 +483,7 @@ private when Hash key, value = name.shift case value - when :python, :ruby, :perl + when :python, :perl, :ruby, :jruby @external_deps[value] << key return when :optional, :recommended |
