besport/homebrew-ocaml — pull request #2 by pico (2012-11-13 22:55:26+00:00)
Title: Depend on X11 in objective-caml formula

The **objective-caml** formula does not work when X11 is installed (XQuartz in my case). OCaml's configure script eagerly includes X11 as a dependency to the build and at the same time Homebrew's superenv censors X11 library path preventing linking.

The following patch worked for me. Hopefully it turns out useful. However please beware as I have not tested it thoroughly. Note also that `--env=std` can be used to circumvent the problem although I deem it untidy.