homebrew-core/Formula/erlang.rb
Geoff Cant 55e8b5582e Latest Erlang R13B02 snapshot
Signed-off-by: Max Howell <max@methylblue.com>

I had to amend this quite heavily as it wasn't a patch against the latest formula.
2009-09-16 14:49:06 +01:00

62 lines
1.9 KiB
Ruby

require 'brewkit'
class ErlangManuals <Formula
@homepage='http://www.erlang.org'
@url='http://erlang.org/download/snapshots/otp_man_R13B02_2009-09-04_18.tar.gz'
@md5='853d01156d49f16b30ead8e0145f45ca'
end
class ErlangHtmlDocs <Formula
@homepage='http://www.erlang.org'
@url='http://erlang.org/download/otp_doc_html_R13B01.tar.gz'
@md5='42cb55bbfa5dc071fd56034615072f7a'
end
class Erlang <Formula
@homepage='http://www.erlang.org'
@url='http://erlang.org/download/otp_src_R13B02.tar.gz'
@md5='80048e589272db810f5d536f47050ab8'
def deps
LibraryDep.new 'icu4c'
LibraryDep.new 'openssl'
end
# 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
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.intel_family == :core2 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 }
end
end