# $Id: Portfile 55063 2009-08-06 13:48:46Z kimuraw@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		{glib2 ruby-gnome2} 0.19.1 extconf.rb \
				{ glib/README glib/sample } \
				sourceforge:ruby-gnome2
revision		0
maintainers		kimuraw
platforms		darwin
description		Ruby/GLib2 is a Ruby binding of GLib-2.x.
long_description	Ruby/GLib2 is a Ruby binding of GLib-2.x.
categories-append	gnome
checksums		md5 d40a03e79ac2a6e6a786ed5a4851337d \
				rmd160 3161d8e2d99ba91ac3a8c6ee51992462b5413e10 \
				sha1 7b42fd26e54eb82c006f7aeacaf91efc417bdbde
configure.env	RUBYOPT=-rvendor-specific
configure.args	--strict glib
depends_lib-append	path:lib/pkgconfig/glib-2.0.pc:glib2
distname		${ruby.project}-all-${version}

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

# NOTE: for developer only. this test launches X11.app.
#test.run		yes
test.cmd		${ruby.bin}
test.target		glib/test/run-test.rb

