diff options
| author | Max Howell | 2009-12-11 13:14:47 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-12 16:23:04 +0000 |
| commit | 5bcb90bf22839b4f4e5246ee284738ed4b16cd87 (patch) | |
| tree | b42b2e61e9efbc51178c043168bffc11c7b641a7 /Library | |
| parent | 3d38b0d2f2feb2c2a8fd183cac02a21cd4d0d097 (diff) | |
| download | homebrew-5bcb90bf22839b4f4e5246ee284738ed4b16cd87.tar.bz2 | |
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
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/imagemagick.rb | 10 |
1 files changed, 8 insertions, 2 deletions
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 <Formula @url='http://image_magick.veidrodis.com/image_magick/ImageMagick-6.5.6-5.tar.gz' @md5='668919a5a7912fb6778975bc55893004' @@ -13,7 +17,7 @@ class Imagemagick <Formula depends_on 'libtiff' => :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 <Formula end def configure_args - ["--prefix=#{prefix}", + args = ["--prefix=#{prefix}", "--disable-dependency-tracking", "--enable-shared", "--disable-static", "--with-modules", "--without-magick-plus-plus"] + args << '--without-ghostscript' unless ghostscript_srsly? + return args end def install |
