aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMax Howell2010-01-16 20:10:12 +0000
committerMax Howell2010-01-16 20:25:50 +0000
commit7c90d024424b7ff73d00d820bc95c2e914e0c504 (patch)
treed61c7f00941848edc1e4da8be276e59a30d42b7d /Library/Formula
parent947cf02330c1433e49c259e476c2e15460f421b9 (diff)
downloadhomebrew-7c90d024424b7ff73d00d820bc95c2e914e0c504.tar.bz2
Sorry, fixes syntax error
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/imagemagick.rb11
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