Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Add support for external ocaml deps via opam
Browse files Browse the repository at this point in the history
Closes #16280.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
awreece authored and adamv committed Jan 5, 2013
1 parent 34f5995 commit 52015c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class DependencyCollector
# Define the languages that we can handle as external dependencies.
LANGUAGE_MODULES = [
:chicken, :jruby, :lua, :node, :perl, :python, :rbx, :ruby
:chicken, :jruby, :lua, :node, :ocaml, :perl, :python, :rbx, :ruby
].freeze

attr_reader :deps, :requirements
Expand Down
2 changes: 2 additions & 0 deletions Library/Homebrew/requirements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def the_test
when :jruby then %W{/usr/bin/env jruby -rubygems -e require\ '#{@import_name}'}
when :lua then %W{/usr/bin/env luarocks show #{@import_name}}
when :node then %W{/usr/bin/env node -e require('#{@import_name}');}
when :ocaml then %W{/usr/bin/env opam list #{@import_name} | grep #{@import_name}}
when :perl then %W{/usr/bin/env perl -e use\ #{@import_name}}
when :python then %W{/usr/bin/env python -c import\ #{@import_name}}
when :ruby then %W{/usr/bin/env ruby -rubygems -e require\ '#{@import_name}'}
Expand All @@ -38,6 +39,7 @@ def command_line
when :jruby then "jruby -S gem install"
when :lua then "luarocks install"
when :node then "npm install"
when :ocaml then "opam install"
when :perl then "cpan -i"
when :python then "pip install"
when :rbx then "rbx gem install"
Expand Down

0 comments on commit 52015c9

Please sign in to comment.