# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		rcairo 1.8.0 extconf.rb {README COPYING GPL samples doc}
maintainers		kimuraw
description		Ruby bindings for cairo
long_description \
		Ruby bindings for Cairo. Cairo is a 2D graphics library \
		with support for multiple output devices.
categories-append	graphics
checksums		md5  7ea9f0b174d379c6a0374f534c2a4e85 \
				rmd160 ef3656dcc52081a9d792e4812ad30a8b911aa695 \
				sha1 de60c4c4c4fd9eeee6ab93a3ca3e0c2e785caafb
platforms		darwin

depends_lib-append		path:lib/pkgconfig/cairo.pc:cairo
configure.env-append 	PKG_CONFIG=${prefix}/bin/pkg-config
configure.args-append	--vendor

homepage        http://cairographics.org/rcairo/
master_sites    http://cairographics.org/releases/

test.env-append 	PKG_CONFIG=${prefix}/bin/pkg-config
test.run		yes
test.dir		${worksrcpath}
test.cmd		${ruby.bin}
test.target		test/run-test.rb
test.args		--testcase=PaperTest

livecheck.type	regex
livecheck.url	${homepage}
livecheck.regex	{The latest version is <a href="http://cairographics.org/releases/rcairo-([\d.]+).tar.gz">}
