# $Id: Portfile 66379 2010-04-10 20:28:25Z febeling@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		RMagick 2.9.0 setup.rb {README.html examples} rubyforge:50276

maintainers		nomaintainer
description		The Ruby interface to ImageMagick and GraphicsMagick
long_description	RMagick is an interface between the Ruby programming \
			language and the ImageMagick (tm) and GraphicsMagick \
			image processing libraries. It is fully featured and \
			has good documentation.
categories-append	graphics
use_bzip2		yes
checksums		sha1 1c5bb201ecc1e2ac769068c72666a0edca67c089
platforms		darwin

depends_lib-append	port:ImageMagick

pre-configure {
	foreach exe {wmf2eps gs} {
		if {[catch {set found [binaryInPath ${exe}]}] != 0} {
			ui_warn "${exe} is not installed, some RMagick examples will fail."
		} else {
			ui_info "${exe} found: ${found}"
		}
	}
}
configure.args	--doc-dir=${prefix}/share/doc/${name}/userguide \
				--allow-example-errors

