aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Morearty2013-06-13 00:59:13 -0700
committerAdam Vandenberg2013-06-18 08:46:40 -0700
commit4f1aefb1ee78c09541f744d70b6721773bd58596 (patch)
tree6dffdcfa94c7f5c01e866f0b23385a12fcd3dbe9 /Library/Formula
parent00d387739c711670fb0a820073053bc0edfefc95 (diff)
downloadhomebrew-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.rb7
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.