Index: Portfile
===================================================================
--- Portfile	(revision 107510)
+++ Portfile	(working copy)
@@ -7,6 +7,7 @@
 name                    couchdb
 conflicts               couchdb-devel
 version                 1.3.1
+revision                1
 
 categories              databases
 platforms               darwin
@@ -41,7 +42,8 @@
 
 patchfiles              patch-etc-launchd-org.apache.couchdb.plist.tpl.in.diff \
                         patch-src-couchdb-priv-Makefile.in.diff \
-                        patch-parameterized-modules-r16b-bug.38395.patch
+                        patch-parameterized-modules-r16b-bug.38395.patch \
+                        patch-r16b01-compatability.39607.patch
 
 require_active_variants erlang ssl
 
Index: files/patch-r16b01-compatability.39607.patch
===================================================================
--- files/patch-r16b01-compatability.39607.patch	(revision 0)
+++ files/patch-r16b01-compatability.39607.patch	(working copy)
@@ -0,0 +1,11 @@
+--- ../apache-couchdb-1.3.1.orig/src/couchdb/couch_app.erl	2013-06-10 06:21:37.000000000 -0500
++++ ./src/couchdb/couch_app.erl	2013-07-02 11:39:18.000000000 -0500
+@@ -20,7 +20,7 @@
+ 
+ start(_Type, DefaultIniFiles) ->
+     IniFiles = get_ini_files(DefaultIniFiles),
+-    case start_apps([crypto, public_key, sasl, inets, oauth, ssl, ibrowse, mochiweb, os_mon]) of
++    case start_apps([crypto, asn1, public_key, sasl, inets, oauth, ssl, ibrowse, mochiweb, os_mon]) of
+     ok ->
+         couch_server_sup:start_link(IniFiles);
+     {error, Reason} ->
