# $Id: Portfile 86645 2011-10-31 01:46:10Z jmr@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		rexml 3.1.3 basic_install.rb \
				{README GPL.txt LICENSE.txt
				index.html credits.html faq.html
				benchmarks contrib doc docs img}
license			{Ruby GPL-2}
maintainers		nomaintainer
description		XML processor for the language Ruby
long_description	REXML is an XML 1.0 compliant, reasonably fast, \
					non-validating XML parser that supports multiple \
					encodings. It has an API that is designed to be \
					intuitive, straightforward, and terse. REXML \
					includes a tree model parser, a SAX2 streaming \
					parser, and a pull parser. It also includes a full \
					XPath implementation. All of REXML's parsers pass \
					100% of the Oasis XML non-validating tests.
categories-append	textproc
homepage		http://www.germane-software.com/software/rexml/
master_sites	http://www.germane-software.com/archives/
distname		${ruby.module}_${version}
extract.suffix	.tgz
checksums		md5 a4d98da886615708301510bde942d785 \
				sha1 726fe5490433af2548a37577f6fa24b122052532 \
				rmd160 79397a7a2ad04bc87f19941eac1ef7d1b19ec592
platforms		darwin

post-extract	{ system "ln -s bin/install.rb ${worksrcpath}/install.rb" }

test.run		yes
test.cmd		${ruby.bin} -I.
test.target		bin/suite.rb
