Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GraphicsMagick as a new package #111

Merged
merged 1 commit into from
Apr 20, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions lib/autoparts/packages/graphics_magick.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module Autoparts
module Packages
class GraphicsMagick < Package
name 'graphics_magick'
version '1.3.19'
description 'GraphicsMagick: the swiss army knife of image processing.'
category Category::UTILITIES

source_url 'http://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.19/GraphicsMagick-1.3.19.tar.gz'
source_sha1 '4176b88a046319fe171232577a44f20118c8cb83'
source_filetype 'tar.gz'

def compile
Dir.chdir('GraphicsMagick-1.3.19') do
args = [
"--prefix=#{prefix_path}"
]
execute './configure', *args
execute 'make'
end
end

def install
Dir.chdir('GraphicsMagick-1.3.19') do
execute 'make', 'install'
end
end

def graphics_magick_path
bin_path + 'graphics_magick'
end
end
end
end