homebrew-core/Formula/erlang.rb
Abhay Kumar e6de5ac534 Don't prematurely bump Erlang
Thou shall not bump a packaging system's erlang version before it's released
even though you love to live on the edge.

Signed-off-by: Max Howell <max@methylblue.com>

Agreed, Homebrew sticks to stable releases in the main url, the @head url is used for cutting edge.
2009-09-25 01:24:05 +01:00

63 lines
2 KiB
Ruby

require 'brewkit'
class ErlangManuals <Formula
@version='5.7.2'
@homepage='http://www.erlang.org'
@url='http://www.csd.uu.se/ftp/mirror/erlang/download/otp_doc_man_R13B01.tar.gz'
@md5='fa8f96159bd9a88aa2fb9e4d79d7affe'
end
class ErlangHtmlDocs <Formula
@version='5.7.2'
@homepage='http://www.erlang.org'
@url='http://www.csd.uu.se/ftp/mirror/erlang/download/otp_doc_html_R13B01.tar.gz'
@md5='42cb55bbfa5dc071fd56034615072f7a'
end
class Erlang <Formula
@version='5.7.2'
@homepage='http://www.erlang.org'
@url='http://www.csd.uu.se/ftp/mirror/erlang/download/otp_src_R13B01.tar.gz'
@md5='b3db581de6c13e1ec93d74e54a7b4231'
# def patches
# [
# "http://pastie.org/603456.txt",
# "http://pastie.org/603462.txt",
# "http://svn.macports.org/repository/macports/trunk/dports/lang/erlang/files/patch-lib-erl_interface-include-ei.h.diff",
# "http://svn.macports.org/repository/macports/trunk/dports/lang/erlang/files/patch-lib-erl_interface-src-connect-ei_connect.c.diff",
# "http://pastie.org/603469.txt",
# "http://pastie.org/603475.txt",
# "http://pastie.org/603478.txt",
# "http://pastie.org/603480.txt",
# "http://pastie.org/603481.txt",
# "http://pastie.org/603485.txt"
# ]
# end
depends_on 'icu4c'
depends_on 'openssl'
def install
ENV.deparallelize
config_flags = ["--disable-debug",
"--prefix=#{prefix}",
"--enable-kernel-poll",
"--enable-threads",
"--enable-dynamic-ssl-lib",
"--enable-smp-support",
"--enable-hipe"]
if Hardware.is_64_bit? and MACOS_VERSION == 10.6
config_flags << "--enable-darwin-64bit"
config_flags << "--enable-m64-build"
end
system "./configure", *config_flags
system "make"
system "make install"
ErlangManuals.new.brew { man.install Dir['man/*'] }
ErlangHtmlDocs.new.brew { doc.install Dir['*'] }
end
end