diff options
| author | Felix Bùˆnemann | 2013-08-31 18:01:29 +0200 |
|---|---|---|
| committer | Jack Nagel | 2013-09-04 18:15:27 -0500 |
| commit | 71e656ade12eedc3df4c037183377b3b3e9fe50d (patch) | |
| tree | 05bc4527cfc008c91794ff015ab31c268696d4f4 /Library/Formula | |
| parent | 8759d6cdd2a4e67f81cd488e5e441b59f97c2d20 (diff) | |
| download | homebrew-71e656ade12eedc3df4c037183377b3b3e9fe50d.tar.bz2 | |
erlang OTP R16B01
Also adds `--with-fop` to build pdf docs aswell as adding unixodbc dep
on Mavericks which no longer include iodbc in the 10.9 SDK.
Closes #20708.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/erlang.rb | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb index 426a1bfb0..66547386b 100644 --- a/Library/Formula/erlang.rb +++ b/Library/Formula/erlang.rb @@ -1,42 +1,43 @@ require 'formula' class ErlangManuals < Formula - url 'http://erlang.org/download/otp_doc_man_R15B03-1.tar.gz' - sha1 'c8674767cd0c1f98946f6a08c7ae318c3f026988' + url 'http://erlang.org/download/otp_doc_man_R16B01.tar.gz' + sha1 '57ef01620386108db83ef13921313e600d351d44' end class ErlangHtmls < Formula - url 'http://erlang.org/download/otp_doc_html_R15B03-1.tar.gz' - sha1 '49d761d8554a83be00e18f681b32b94572f9c050' + url 'http://erlang.org/download/otp_doc_html_R16B01.tar.gz' + sha1 '6741e15e0b3e58736987e38fb8803084078ff99f' end class ErlangHeadManuals < Formula - url 'http://erlang.org/download/otp_doc_man_R15B03-1.tar.gz' - sha1 'c8674767cd0c1f98946f6a08c7ae318c3f026988' + url 'http://erlang.org/download/otp_doc_man_R16B01.tar.gz' + sha1 '57ef01620386108db83ef13921313e600d351d44' end class ErlangHeadHtmls < Formula - url 'http://erlang.org/download/otp_doc_html_R15B03-1.tar.gz' - sha1 '49d761d8554a83be00e18f681b32b94572f9c050' + url 'http://erlang.org/download/otp_doc_html_R16B01.tar.gz' + sha1 '6741e15e0b3e58736987e38fb8803084078ff99f' end class Erlang < Formula homepage 'http://www.erlang.org' # Download tarball from GitHub; it is served faster than the official tarball. - url 'https://github.com/erlang/otp/archive/OTP_R15B03-1.tar.gz' - sha1 '7843070f5d325f95ef13022fc416b22b6b14120d' + url 'https://github.com/erlang/otp/archive/OTP_R16B01.tar.gz' + sha1 'ddbff080ee39c50b86b847514c641f0a9aab0333' head 'https://github.com/erlang/otp.git', :branch => 'master' bottle do - revision 1 - sha1 '87d2acd2d27a9b774886a2fb7be0f8f919fca060' => :mountain_lion - sha1 '79ec42e6340a32032c39715d4e0a5e1909918af5' => :lion - sha1 'afafe2a4b51272eb6ed0f6bfdc4cbdfae0cdc19c' => :snow_leopard + sha1 'febb0a5d56258dabd3ccdca22cc3eaa60b16fbf1' => :mountain_lion + sha1 '2d1456b7e28942d08f78952993d31219206bc08a' => :lion + sha1 '222b389b09cf290ea07a5600d94c08fa7a1fcc01' => :snow_leopard end depends_on :automake depends_on :libtool + depends_on 'unixodbc' if MacOS.version >= :mavericks + depends_on 'fop' => :optional # enables building PDF docs fails_with :llvm do build 2334 @@ -55,6 +56,7 @@ class Erlang < Formula ENV.remove_from_cflags /-O./ ENV.append_to_cflags '-O0' end + ENV.append "FOP", "#{HOMEBREW_PREFIX}/bin/fop" if build.with? 'fop' # Do this if building from a checkout to generate configure system "./otp_build autoconf" if File.exist? "otp_build" @@ -82,7 +84,6 @@ class Erlang < Formula end system "./configure", *args - touch 'lib/wx/SKIP' if MacOS.version >= :snow_leopard system "make" ENV.j1 # Install is not thread-safe; can try to create folder twice and fail system "make install" @@ -104,9 +105,9 @@ class Erlang < Formula `#{bin}/erl -noshell -eval 'crypto:start().' -s init stop` # This test takes some time to run, but per bug #120 should finish in - # "less than 20 minutes". It takes a few minutes on a Mac Pro (2009). - if build.include? "time" - `#{bin}/dialyzer --build_plt -r #{lib}/erlang/lib/kernel-2.15/ebin/` + # "less than 20 minutes". It takes about 20 seconds on a Mac Pro (2009). + if build.include?("time") && !build.head? + `#{bin}/dialyzer --build_plt -r #{lib}/erlang/lib/kernel-2.16.2/ebin/` end end end |
