<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -20,7 +20,8 @@ class Erlang &lt;Formula
   skip_clean 'lib'
 
   def patches
-    { :p0 =&gt; [&quot;patch-toolbar.erl&quot;,
+    { :p1 =&gt; DATA,
+      :p0 =&gt; [&quot;patch-toolbar.erl&quot;,
               &quot;patch-erts_emulator_Makefile.in&quot;,
               &quot;patch-erts_emulator_hipe_hipe_amd64_asm.m4.diff&quot;,
               &quot;patch-erts_emulator_hipe_hipe_amd64_bifs.m4.diff&quot;,
@@ -53,13 +54,13 @@ class Erlang &lt;Formula
       config_flags &lt;&lt; '--enable-hipe'
     end
 
-    if Hardware.is_64_bit? and MACOS_VERSION == 10.6
+    if Hardware.is_64_bit? and MACOS_VERSION &gt;= 10.6
       config_flags &lt;&lt; &quot;--enable-darwin-64bit&quot; 
       config_flags &lt;&lt; &quot;--enable-m64-build&quot;
     end
 
     system &quot;./configure&quot;, *config_flags
-    system &quot;touch lib/wx/SKIP&quot;
+    system &quot;touch lib/wx/SKIP&quot; if MACOS_VERSION &gt;= 10.6
     system &quot;make&quot;
     system &quot;make install&quot;
 
@@ -67,3 +68,38 @@ class Erlang &lt;Formula
     #ErlangHtmlDocs.new.brew { doc.install Dir['*'] }
   end
 end
+
+
+__END__
+--- otp_src_R13B02-1/configure	2009-09-21 11:29:51.000000000 +0200
++++ otp_src_R13B02-1-hvt/configure	2009-11-11 19:02:24.000000000 +0200
+@@ -2702,7 +2702,7 @@
+ 	export LDFLAGS
+ fi
+ if test X${enable_darwin_64bit} = Xyes; then
+-	if test X&quot;$TMPSYS&quot; '!=' X&quot;Darwin-i386&quot;; then
++	if test X&quot;$TMPSYS&quot; '!=' X&quot;Darwin-i386&quot; '-a' X&quot;$TMPSYS&quot; '!=' X&quot;Darwin-x86_64&quot;; then
+ 		{ { echo &quot;$as_me:$LINENO: error: --enable-darwin-64bit only supported on x86 host&quot; &gt;&amp;5
+ echo &quot;$as_me: error: --enable-darwin-64bit only supported on x86 host&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+@@ -2712,7 +2712,7 @@
+ 	export CFLAGS
+ 	LDFLAGS=&quot;-m64 $LDFLAGS&quot;
+ 	export LDFLAGS
+-elif test X&quot;$TMPSYS&quot; '=' X&quot;Darwin-i386&quot;; then
++elif test X&quot;$TMPSYS&quot; '=' X&quot;Darwin-i386&quot; '-o' X&quot;$TMPSYS&quot; '!=' X&quot;Darwin-x86_64&quot;; then
+ 	CFLAGS=&quot;-m32 $CFLAGS&quot;
+ 	export CFLAGS
+ 	LDFLAGS=&quot;-m32 $LDFLAGS&quot;
+diff -r -u otp_src_R13B02-1/erts/configure otp_src_R13B02-1-hvt/erts/configure
+--- otp_src_R13B02-1/erts/configure	2009-09-21 11:29:49.000000000 +0200
++++ otp_src_R13B02-1-hvt/erts/configure	2009-11-11 19:05:49.000000000 +0200
+@@ -2803,7 +2803,7 @@
+ 	esac
+ fi
+ if test X${enable_darwin_64bit} = Xyes; then
+-	if test X&quot;$TMPSYS&quot; '!=' X&quot;Darwin-i386&quot;; then
++	if test X&quot;$TMPSYS&quot; '!=' X&quot;Darwin-i386&quot; '-a' X&quot;$TMPSYS&quot; '!=' X&quot;Darwin-x86_64&quot;; then
+ 		{ { echo &quot;$as_me:$LINENO: error: --enable-darwin-64bit only supported on x86 host&quot; &gt;&amp;5
+ echo &quot;$as_me: error: --enable-darwin-64bit only supported on x86 host&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }</diff>
      <filename>Library/Formula/erlang.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2dc3423c195d766f4fff426def88e585c15884b3</id>
    </parent>
  </parents>
  <author>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </author>
  <url>http://github.com/KieranP/homebrew/commit/0d673c6684dcf7c459e535a20f6a425983841324</url>
  <id>0d673c6684dcf7c459e535a20f6a425983841324</id>
  <committed-date>2009-11-11T09:29:35-08:00</committed-date>
  <authored-date>2009-11-11T09:25:48-08:00</authored-date>
  <message>Fixes #126; configure breaks with 64 bit kernel</message>
  <tree>bb703a86704bcb709e283d6a4cab68f16e80f635</tree>
  <committer>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </committer>
</commit>
