Created
October 7, 2009 22:51
-
-
Save archaelus/204527 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'brewkit' | |
class ErlangManuals <Formula | |
url 'http://www.erlang.org/download/otp_doc_man_R13B02-1.tar.gz' | |
md5 'b5f7b20faa049a8b6a753fc7a462d02d' | |
end | |
class ErlangHtmlDocs <Formula | |
url 'http://erlang.org/download/otp_doc_html_R13B02-1.tar.gz' | |
md5 'd48da533b49f7b32c94032f2a53c0073' | |
end | |
class Erlang <Formula | |
url 'http://erlang.org/download/otp_src_R13B02-1.tar.gz' | |
md5 '2593b9312eb1b15bf23a968743138c52' | |
version 'R13B02-1' | |
homepage 'http://www.erlang.org' | |
depends_on 'icu4c' | |
skip_clean 'lib' | |
def skip_clean? path | |
["*/bin/*", | |
"*.o", | |
"*.so"].any? { |pat| path.fnmatch? pat } | |
end | |
def install | |
ENV.deparallelize | |
ENV.gcc_4_2 | |
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 | |
# until WX works on mac os x, skip building it to save time. | |
system "touch lib/wx/SKIP" | |
system "make" | |
system "make install" | |
raise RuntimeError.new("Fixup the install now.") | |
ErlangManuals.new.brew { man.install Dir['man/*'] } | |
ErlangHtmlDocs.new.brew { doc.install Dir['*'] } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment