graphviz: Depends on ghostscript and groff to build
graphviz: Depends on ghostscript and groff to build

Requires ps2pdf to build. This was technically a dependency for a long
time, but recent commits to graphviz have made these errors non-silent.
See https://gitlab.com/graphviz/graphviz/-/issues/1763

groff was also identified as a dependency by CI

Closes #20812.

Signed-off-by: Jonathan Chang <23d59d2887d427d0003fbe56501dce145e9c1080@monash.edu>

Linuxbrew/homebrew-core,Linuxbrew/homebrew-core