2009-06-05 22:38:23 +00:00
|
|
|
require 'brewkit'
|
|
|
|
|
2009-09-01 00:06:11 +00:00
|
|
|
class ErlangManuals <Formula
|
2009-09-24 01:52:16 +00:00
|
|
|
@version='R13B02-1'
|
2009-09-01 00:06:11 +00:00
|
|
|
@homepage='http://www.erlang.org'
|
2009-09-24 01:52:16 +00:00
|
|
|
@url='http://www.erlang.org/download/otp_doc_man_R13B02-1.tar.gz'
|
|
|
|
@md5='b5f7b20faa049a8b6a753fc7a462d02d'
|
2009-09-01 00:06:11 +00:00
|
|
|
end
|
|
|
|
|
2009-09-02 15:11:46 +00:00
|
|
|
class ErlangHtmlDocs <Formula
|
2009-09-24 01:52:16 +00:00
|
|
|
@version='R13B02-1'
|
2009-09-02 15:11:46 +00:00
|
|
|
@homepage='http://www.erlang.org'
|
2009-09-24 01:52:16 +00:00
|
|
|
@url='http://erlang.org/download/otp_doc_html_R13B02-1.tar.gz'
|
|
|
|
@md5='d48da533b49f7b32c94032f2a53c0073'
|
2009-09-02 15:11:46 +00:00
|
|
|
end
|
|
|
|
|
2009-06-05 22:38:23 +00:00
|
|
|
class Erlang <Formula
|
2009-09-24 01:52:16 +00:00
|
|
|
@version='R13B02-1'
|
2009-06-05 22:38:23 +00:00
|
|
|
@homepage='http://www.erlang.org'
|
2009-09-24 01:52:16 +00:00
|
|
|
@url='http://erlang.org/download/otp_src_R13B02-1.tar.gz'
|
|
|
|
@md5='2593b9312eb1b15bf23a968743138c52'
|
2009-06-05 22:38:23 +00:00
|
|
|
|
2009-09-02 15:11:46 +00:00
|
|
|
# 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
|
|
|
|
|
2009-09-18 18:16:39 +00:00
|
|
|
depends_on 'icu4c'
|
|
|
|
depends_on 'openssl'
|
|
|
|
|
2009-06-05 22:38:23 +00:00
|
|
|
def install
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.deparallelize
|
2009-09-02 15:11:46 +00:00
|
|
|
config_flags = ["--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
2009-08-10 19:06:20 +00:00
|
|
|
"--enable-kernel-poll",
|
|
|
|
"--enable-threads",
|
|
|
|
"--enable-dynamic-ssl-lib",
|
|
|
|
"--enable-smp-support",
|
2009-09-02 15:11:46 +00:00
|
|
|
"--enable-hipe"]
|
2009-09-05 22:24:57 +00:00
|
|
|
|
2009-09-18 18:50:01 +00:00
|
|
|
if Hardware.is_64_bit? and MACOS_VERSION == 10.6
|
2009-09-05 22:24:57 +00:00
|
|
|
config_flags << "--enable-darwin-64bit"
|
|
|
|
config_flags << "--enable-m64-build"
|
|
|
|
end
|
2009-09-02 15:11:46 +00:00
|
|
|
|
|
|
|
system "./configure", *config_flags
|
2009-06-05 22:38:23 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2009-09-02 15:11:46 +00:00
|
|
|
|
2009-09-01 00:06:11 +00:00
|
|
|
ErlangManuals.new.brew { man.install Dir['man/*'] }
|
2009-09-19 19:49:40 +00:00
|
|
|
ErlangHtmlDocs.new.brew { doc.install Dir['*'] }
|
2009-06-05 22:38:23 +00:00
|
|
|
end
|
2009-09-05 22:24:57 +00:00
|
|
|
end
|