Should this not be

    option 'without-cocoa', ...

`--disable-cocoa` is the actual ROOT configuration flag, but Homebrew only operates on `--with/--without`-style flags.