# $Id: Portfile 66715 2010-04-21 13:37:06Z kimuraw@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		{gnomeprint ruby-gnome2} 0.19.4 extconf.rb \
				{ gnomeprint/README gnomeprint/sample } \
				sourceforge:ruby-gnome2
revision		0
maintainers		kimuraw
platforms		darwin
description		Ruby/GnomePrint is a Ruby binding of libgnomeprint.
long_description	Ruby/GnomePrint is a Ruby binding of libgnomeprint.
categories-append	gnome
license			LGPLv2
checksums		md5 40451e4173e2c8bcd5046aea7e499ef9 \
				rmd160 11a102c28d00f8f5a7b2baeb2370a6d794cfb7d9 \
				sha1 6fbaf51cced8cc15158144e15898244f2ebf6870
configure.env	RUBYOPT=-rvendor-specific
configure.args	--strict gnomeprint
depends_lib-append	port:libgnomeprint port:rb-glib2 port:rb-pango \
				port:rb-libart
distname		${ruby.project}-all-${version}

pre-destroot {
	xinstall -d ${destroot}${prefix}/lib/pkgconfig
}

## genearte header files for testing
#pre-configure	{
#	system "${ruby.bin} -C ${worksrcpath} extconf.rb --strict glib"
#}
#test.run		yes
test.cmd        ${ruby.bin}
test.target     -C gnomeprint test/run-test.rb

