diff options
| author | Mike Morearty | 2013-06-13 00:59:13 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-18 08:46:40 -0700 |
| commit | 4f1aefb1ee78c09541f744d70b6721773bd58596 (patch) | |
| tree | 6dffdcfa94c7f5c01e866f0b23385a12fcd3dbe9 /Library/Formula | |
| parent | 00d387739c711670fb0a820073053bc0edfefc95 (diff) | |
| download | homebrew-4f1aefb1ee78c09541f744d70b6721773bd58596.tar.bz2 | |
Elixir: Show warning if Erlang R16 isn't installed
Closes #20459.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/elixir.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/elixir.rb b/Library/Formula/elixir.rb index beb1ad8f8..dfdf19a8f 100644 --- a/Library/Formula/elixir.rb +++ b/Library/Formula/elixir.rb @@ -3,7 +3,12 @@ require 'formula' class ErlangInstalled < Requirement fatal true - satisfy { which 'erl' } + satisfy { + which 'erl' and begin + `erl -noshell -eval 'io:fwrite("~s~n", [erlang:system_info(otp_release)]).' -s erlang halt | grep -q '^R1[6789]'` + $?.exitstatus == 0 + end + } def message; <<-EOS.undent Erlang R16 is required to install. |
