# $Id: Portfile,v 1.8 2005/10/07 12:48:12 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-ro
version			3.5
categories		python devel
maintainers		mww@opendarwin.org
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		md5 6d62a88521617041775057de9e8c6b93
patchfiles		patch-setup.cfg.diff

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

post-build	{
	cd ${worksrcpath}/bin
	reinplace "s|python|${python.bin}|g" \
		es esd genguid ns nsc nsd rns wxnsc xnsc
}

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}
}
