# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name			py25-twisted
version			8.2.0
categories		python devel net
maintainers		stechert akitada openmaintainer
platforms		darwin
description		An event-based Python framework for internet applications
long_description	Twisted is an event-driven networking framework \
				written in Python. Twisted supports TCP, UDP, SSL/TLS, \
				multicast, Unix sockets, a large number of protocols \
				(including HTTP, NNTP, SSH, IRC, FTP, and others), and \
				much more.

homepage		http://www.twistedmatrix.com/
master_sites		http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/
distname		Twisted-${version}
use_bzip2		yes
checksums           	md5     c85f151999df3ecf04c49a781b4438d2 \
                    	sha1    ef5f475b8f38eafd9b83a325ce131fdf6af05255 \
                    	rmd160  a942e6ee4c54d734111410b615754fbea0c9fb5e

depends_lib-append	port:py25-zopeinterface

post-destroot {
	foreach f [glob -directory ${destroot}/${prefix}/bin *] {
		move $f ${destroot}${prefix}/bin/[file tail $f]2.5
	}
        
        # update the plugin cache
        system "PYTHONPATH=${destroot}${python.pkgd} ${prefix}/bin/python2.5 ${portpath}/${filesdir}/getPlugins.py"
}

livecheck.type    regex
livecheck.url     http://twistedmatrix.com/trac/wiki/Downloads
livecheck.regex   {The current release is Twisted (\d+(?:\.\d+)*)}
