homebrew-core/Formula/imagick.rb

27 lines
613 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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
Dir.chdir "imagick-#{version}" do
system "phpize"
system "./configure", "--prefix=#{prefix}"
system "make"
(lib+'php/extensions').install 'modules/imagick.so'
end
end
def caveats; <<-EOS.undent
To finish installing Imagick:
Edit php.ini file
extension="#{lib}/php/extensions/imagick.so"
Restart your webserver
EOS
end
end