From c4e0264109a49e8d001edd67d81814c9f2964b8e Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Fri, 31 Aug 2012 09:47:41 -0700 Subject: [PATCH] ghostscript: add `--without-x` gs-9.06 is designed to build with only `:libpng` these days, but it fails to compile with superenv unless we specify that we don't want to build with X11. * Remove the `ENV['LIBS'] = some/X11/path` * Add `--without-x` to fix a build error. Fixes Homebrew/homebrew#14564 Closes Homebrew/homebrew#14596. Signed-off-by: Misty De Meo --- Formula/ghostscript.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Formula/ghostscript.rb b/Formula/ghostscript.rb index 15dd645b7c..4c999f0e3f 100644 --- a/Formula/ghostscript.rb +++ b/Formula/ghostscript.rb @@ -43,8 +43,6 @@ class Ghostscript < Formula def install ENV.deparallelize - # ghostscript configure ignores LDFLAGs apparently - ENV['LIBS'] = "-L#{MacOS::X11.lib}" if MacOS::X11.installed? src_dir = build.head? ? "gs" : "." @@ -56,6 +54,7 @@ class Ghostscript < Formula --disable-compile-inits --disable-gtk --with-system-libtiff + --without-x ] if build.head?