# $Id: Portfile,v 1.12 2004/12/31 16:39:22 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-jabber
version			0.5-0
revision		1
categories		python net
maintainers		mww@opendarwin.org
platforms		darwin freebsd
description		python module for the jabber instant messaging protocol
long_description	jabber.py is a python module for the jabber instant \
				messaging protocol. jabber.py deals with the xml parsing and \
				socket code, leaving the programmer to concentrate on \
				developing quality jabber based applications with python.

homepage		http://jabberpy.sourceforge.net/
master_sites	sourceforge:jabberpy
distname		jabberpy-${version}
checksums		md5 cbb9a1126bdc39ff49af605fb55c282e
patchfiles		patch-setup.py.diff

post-patch	{
	reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
	file copy ${worksrcpath}/jabber/debug.py \
		${worksrcpath}/jabber/jabber.py \
		${worksrcpath}/jabber/xmlstream.py ${worksrcpath}
}

post-destroot   {
	xinstall -m 644 -W ${worksrcpath} README CREDITS \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/examples README jrpc.py pending.xpm \
		mailchecker.py offline.xpm online.xpm pygtkjab.py pyqtjab.py \
		pypguijab.py test_client.py \
		${destroot}${prefix}/share/doc/${name}/examples
}
