require 'formula' class ErlangManuals = 10.6 config_flags << "--enable-darwin-64bit" end system "./configure", *config_flags system "touch lib/wx/SKIP" if MACOS_VERSION >= 10.6 system "make" system "make install" ErlangManuals.new.brew { man.install Dir['man/*'] } end def test "erl -noshell -eval 'crypto:start().' -s init stop" end end