Sha256: b48a8886ed4348ffc3ee5f1a185f7b7f55dd197317a4f16073f520804602f7d8

Contents?: true

Size: 831 Bytes

Versions: 8

Compression:

Stored size: 831 Bytes

Contents

namespace :imagemagick do 
  namespace :centos do
  
    desc <<-DESC
    Install imagemagick.\n    
    <dl><dt>imagemagick_build_options</dt><dd>Imagemagick build options</dd></dl>
    <pre>
    <code class="ruby">
    set :imagemagick_build_options, {
      :url => "ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz",
      :unpack_dir => "ImageMagick-*"
    }
    </code>
    </pre>
    "Source":#{link_to_source(__FILE__)}
    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" ])
        
      build.make_install("imagemagick", imagemagick_build_options)
    end
  
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
capitate-0.2.14 lib/recipes/centos/imagemagick.rb
capitate-0.2.13 lib/recipes/centos/imagemagick.rb
capitate-0.2.15 lib/recipes/centos/imagemagick.rb
capitate-0.3.4 lib/recipes/centos/imagemagick.rb
capitate-0.3.5 lib/recipes/centos/imagemagick.rb
capitate-0.3.2 lib/recipes/centos/imagemagick.rb
capitate-0.3.1 lib/recipes/centos/imagemagick.rb
capitate-0.3.3 lib/recipes/centos/imagemagick.rb