ec4aa1f6b6
Conflicts: Library/Formula/imagemagick.rb Library/Formula/taglib.rb Library/Homebrew/brew.h.rb Library/Homebrew/formula.rb bin/brew
60 lines
1.9 KiB
Ruby
60 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 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.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
|