Sha256: a22613dffc1a5347bb27fedd212d61d0dc809ab9982702c79f63e525bb19a3df

Contents?: true

Size: 733 Bytes

Versions: 2

Compression:

Stored size: 733 Bytes

Contents

namespace :imagemagick do 
  namespace :centos do
  
    desc <<-DESC
    Install imagemagick.\n    
    *imagemagick_build_options*: Imagemagick build options.
    <pre>
    set :imagemagick_build_options, {
      :url => "ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz",
      :unpack_dir => "ImageMagick-*"
    }
    </pre>
    DESC
    task :install do
      
      # Settings 
      fetch(:imagemagick_build_options)
      
      # Install dependencies
      yum.install([ "libjpeg-devel", "libpng-devel", "glib2-devel", "fontconfig-devel", "zlib-devel", 
        "libwmf-devel", "freetype-devel", "libtiff-devel" ])
        
      script.make_install("imagemagick", imagemagick_build_options)
    end
  
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capitate-0.2.5 lib/recipes/centos/imagemagick.rb
capitate-0.2.6 lib/recipes/centos/imagemagick.rb