2010-12-21 01:29:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Imagick <Formula
|
|
|
|
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
|
|
|
|
extensions = lib+'php'+'extensions'
|
|
|
|
Dir.chdir "Imagick-#{version}" do
|
|
|
|
system "phpize"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
extensions.install 'modules/imagick.so'
|
|
|
|
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
|