# $Id: Portfile 30957 2007-11-12 10:51:37Z mww@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-ro
version			3.7
categories		python devel
maintainers		nomaintainer
platforms		darwin
description		advanced Distributed Object Technology for python
long_description	Pyro is an acronym for PYthon Remote Objects. It is \
				an advanced and powerful Distributed Object Technology system \
				written entirely in Python, that is designed to be very easy \
				to use. It resembles Java's Remote Method Invocation (RMI). It \
				is less similar to CORBA - which is a system- and language \
				independent Distributed Object Technology and has much more to \
				offer than Pyro or RMI. But Pyro is small, simple and free \
				(MIT software license).

homepage		http://pyro.sourceforge.net/
master_sites	sourceforge:pyro
distname		Pyro-${version}
checksums		sha1 f5c42e451950b9b6c05f0769ced576ed18cad3c0
patchfiles		patch-setup.cfg.diff

post-patch	{
	reinplace "s|__BINDIR__|${prefix}/bin|g" ${worksrcpath}/setup.cfg
}

post-build	{
	foreach f [glob -directory ${worksrcpath}/bin *] {
		reinplace "s|python|${python.bin}|g" ${f}
	}
}

post-destroot	{
	xinstall -m 644 -W ${worksrcpath}/docs 1-intro.html 10-errors.html \
		11-implementation.html 12-changes-archive.html 12-changes.html \
		2-concepts.html 3-install.html 4-usage.html 5-nameserver.html \
		6-eventserver.html 7-features.html 8-example.html index.html \
		9-security.html LICENSE PyroManual.html ../README.txt \
		${destroot}${prefix}/share/doc/${name}
}
