diff options
| author | Max Howell | 2010-01-16 20:10:12 +0000 |
|---|---|---|
| committer | Max Howell | 2010-01-16 20:25:50 +0000 |
| commit | 7c90d024424b7ff73d00d820bc95c2e914e0c504 (patch) | |
| tree | d61c7f00941848edc1e4da8be276e59a30d42b7d /Library/Formula | |
| parent | 947cf02330c1433e49c259e476c2e15460f421b9 (diff) | |
| download | homebrew-7c90d024424b7ff73d00d820bc95c2e914e0c504.tar.bz2 | |
Sorry, fixes syntax error
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/imagemagick.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb index b2931dce0..e3e0ce9ae 100644 --- a/Library/Formula/imagemagick.rb +++ b/Library/Formula/imagemagick.rb @@ -7,11 +7,18 @@ def ghostscript_srsly? ARGV.include? '--with-ghostscript' end +def x11? + # I used this file because old Xcode seems to lack it, and its that old + # Xcode that loads of people seem to have installed still + File.file? '/usr/X11/include/ft2build.h' +end + class Imagemagick <Formula @url='http://image_magick.veidrodis.com/image_magick/ImageMagick-6.5.6-5.tar.gz' @md5='668919a5a7912fb6778975bc55893004' @homepage='http://www.imagemagick.org' + depends_on 'jpeg' depends_on 'libwmf' => :optional if x11? depends_on 'libtiff' => :optional @@ -63,8 +70,4 @@ class Imagemagick <Formula def caveats "You don't have X11 from the Xcode DMG installed. Consequently Imagemagick is less fully featured." unless x11? end - - def self.x11? - File.file? '/usr/X11/include/ft2build.h' - end end |
