From 5bcb90bf22839b4f4e5246ee284738ed4b16cd87 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 11 Dec 2009 13:14:47 +0000 Subject: Ghostscript now defaults to not being a dep Rationale: experience suggests people don't use this part much if at all, and it is the cause of almost all issues against this formula. Include it as a dep with --with-ghostscript --- Library/Formula/imagemagick.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb index 23fdbdcef..e86f9bc1f 100644 --- a/Library/Formula/imagemagick.rb +++ b/Library/Formula/imagemagick.rb @@ -3,6 +3,10 @@ require 'formula' # some credit to http://github.com/maddox/magick-installer # NOTE please be aware that the GraphicsMagick formula derives this formula +def ghostscript_srsly? + ARGV.include? '--with-ghostscript' +end + class Imagemagick :optional depends_on 'little-cms' => :optional depends_on 'jasper' => :optional - depends_on 'ghostscript' => :recommended + depends_on 'ghostscript' => :recommended if ghostscript_srsly? def skip_clean? path path.extname == '.la' @@ -25,12 +29,14 @@ class Imagemagick