# $Id: Portfile,v 1.6 2005/04/21 15:58:19 jberry Exp $
PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		rjab-connection 0.1.1 basic_install.rb {README} \
				sourceforge:rjab
revision		3
maintainers		jdputsch@comcast.net
description		Library allowing Ruby apps to talk to a Jabber IM system. 
long_description	rjab-connection is a pure ruby port of D.J. Adams' \
                    Net::Jabber::Connection perl module using REXML as \
                    the stream parser. This release supports Zero-k, \
                    Digest, and Plaintext authentication, so it is safe to \
                    use across untrusted networks. The API is very \
                    low-level, but easy enough to understand. Account \
                    creation is not supported _yet_.
checksums		md5 8a13d7fa0fb12c06d6b6bf13e718a220
platforms		darwin

worksrcdir		${ruby.module}

depends_lib-append		port:rb-rexml

patchfiles      patch-conn_connection.rb \
                patch-node.rb \
                patch-ns.rb \
                patch-rjab_connection.rb \
                patch-xmllistener.rb \
                patch-test-tc_Connection.rb \
                patch-test-tc_Node.rb \
                patch-test-tc_all.rb

test.run        yes
test.dir        ${worksrcpath}/tests
test.cmd        ${ruby.bin} -I../lib tc_all.rb
test.target

post-destroot	{ system "rm -rf ${destroot}${ruby.lib}/rjab/rexml" }

