homebrew-core/Formula/imagick.rb
Adam Vandenberg da3fdbd0cf Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00

26 lines
606 B
Ruby

require 'formula'
class Imagick < Formula
homepage 'http://pecl.php.net/package/imagick'
url 'http://pecl.php.net/get/imagick-3.0.1.tgz'
md5 'e2167713316639705202cf9b6cb1fdb1'
depends_on 'imagemagick'
def install
cd "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