2010-12-21 01:29:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Imagick < Formula
|
2010-12-21 01:29:45 +00:00
|
|
|
url 'http://pecl.php.net/get/imagick-3.0.1.tgz'
|
|
|
|
homepage 'http://pecl.php.net/package/imagick'
|
|
|
|
md5 'e2167713316639705202cf9b6cb1fdb1'
|
|
|
|
|
|
|
|
depends_on 'imagemagick'
|
|
|
|
|
|
|
|
def install
|
2011-05-15 23:37:43 +00:00
|
|
|
Dir.chdir "imagick-#{version}" do
|
2010-12-21 01:29:45 +00:00
|
|
|
system "phpize"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
2011-05-15 23:37:43 +00:00
|
|
|
(lib+'php/extensions').install 'modules/imagick.so'
|
2010-12-21 01:29:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To finish installing Imagick:
|
2010-12-23 02:23:19 +00:00
|
|
|
Edit php.ini file
|
|
|
|
extension="#{lib}/php/extensions/imagick.so"
|
|
|
|
Restart your webserver
|
2010-12-21 01:29:45 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|