aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ghostscript.rb
diff options
context:
space:
mode:
authorJack Nagel2012-08-27 15:40:41 -0500
committerJack Nagel2012-08-27 15:40:41 -0500
commitfdb604bbee37194314e812034a676964c80169ab (patch)
treeadbe9276cc5970671c1578f5140a159578a99c5a /Library/Formula/ghostscript.rb
parent47c464115d9b205dd4c96bc02478fb38cfef3e26 (diff)
downloadhomebrew-fdb604bbee37194314e812034a676964c80169ab.tar.bz2
ghostscript: don't call X11 methods unless X11 is installed
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/ghostscript.rb')
-rw-r--r--Library/Formula/ghostscript.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/ghostscript.rb b/Library/Formula/ghostscript.rb
index 33fde65dd..15dd645b7 100644
--- a/Library/Formula/ghostscript.rb
+++ b/Library/Formula/ghostscript.rb
@@ -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" : "."