diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb index 23fdbdcefb..e86f9bc1fa 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