# -*- 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 88259 2011-12-23 15:40:26Z macsforever2000@macports.org $

PortSystem 1.0
PortGroup  python27 1.0

name			py27-twisted
version			11.1.0
categories		python devel net
license			MIT
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/

set dl_version [join [lrange [split ${version} .] 0 1] .]
master_sites    http://tmrc.mit.edu/mirror/twisted/Twisted/${dl_version} \
                http://twistedmatrix.com/Releases/Twisted/${dl_version}
distname		Twisted-${version}
use_bzip2		yes

checksums       rmd160  569419f06bd72d658a870cee6ac596f00008a955 \
                sha256  7fbb4529aaa3547708bb0a84377107db1e6ae7a6a9940bb8d8b05976c2754f15

depends_lib-append  port:py27-zopeinterface

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