# $Id: Portfile,v 1.2 2005/08/11 21:33:37 rshaw Exp $
PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		{xml-xpath ruby-xpath} 0.4.0 extconf.rb \
				{README ChangeLog tests}
maintainers		darwinports@opendarwin.org
description		A simple XPath class for Ruby
long_description	${description}
categories-append	textproc
homepage		http://www.webtime-project.net/
master_sites	http://gregoire.lejeune.free.fr/
distname		${ruby.project}_${version}
worksrcdir		${ruby.project}
checksums		md5 fe4edae5cdac5494bf4216f23e92986f
platforms		darwin

depends_lib-append	lib:libz.1:zlib \
					lib:libxml2.2.6:libxml2

test.run		yes
test.dir		${worksrcpath}/tests
pre-test		{ system "cd ${test.dir} && rm -f xml && ln -s .. xml" }
test.cmd		${ruby.bin}
test.target		test.rb

