ghostscript: don't call X11 methods unless X11 is installed

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-08-27 15:40:41 -05:00
parent 1965107f0b
commit 0a3bd92393

View file

@ -44,7 +44,7 @@ class Ghostscript < Formula
def install
ENV.deparallelize
# ghostscript configure ignores LDFLAGs apparently
ENV['LIBS'] = "-L#{MacOS::X11.lib}"
ENV['LIBS'] = "-L#{MacOS::X11.lib}" if MacOS::X11.installed?
src_dir = build.head? ? "gs" : "."