How to Install CouchDB on OS X Yosemite

To install CouchDB on a Mac the best way is to use Homebrew.
If not done already first install Homebrew using Terminal:

Now install CouchDB using Homebrew:

But the problem there is a incompatibility of the brew package wxmac with the gcc compiler of the current Xcode 6 Beta 5.
Xcode 6 on the other side is required for developing under Yosemite. This results in following error:

The solution is using a patched version of wxmac provided by DomT4:

After this CouchDB installs without any further problems:

Now relax!