# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 63036 2010-01-24 10:43:40Z jmr@macports.org $

PortSystem 1.0
PortGroup  python26 1.0

name			py26-twisted
version			8.2.0
categories		python devel net
platforms		darwin
maintainers		mcalhoun openmaintainer
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/[join [lrange [split ${version} .] 0 1] .]
distname		Twisted-${version}
use_bzip2		yes
checksums \
    md5     c85f151999df3ecf04c49a781b4438d2 \
    sha1    ef5f475b8f38eafd9b83a325ce131fdf6af05255 \
    rmd160  a942e6ee4c54d734111410b615754fbea0c9fb5e

depends_lib-append  port:py26-zopeinterface

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