# -*- 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 121661 2014-07-03 17:50:11Z mf2k@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-twisted version 13.2.0 categories-append devel net license MIT platforms darwin maintainers mcalhoun free.fr:olv.bonnet 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 e74ea62d7074bbdc03f411acf77b1bf40691f37c \ sha256 095175638c019ac7c0604f4c291724a16ff1acd062e181b01293bf4dcbc62cf3 python.versions 24 25 26 27 if {${name} ne ${subport}} { depends_lib-append port:py${python.version}-zopeinterface post-destroot { # update the plugin cache system "PYTHONPATH=${destroot}${python.pkgd} ${python.bin} ${filespath}/getPlugins.py" } pre-activate { set cachefile ${python.pkgd}/twisted/plugins/dropin.cache if {[file exists $cachefile] && [registry_file_registered $cachefile] == "0"} { file delete -force $cachefile } } livecheck.type none } else { livecheck.type regex livecheck.url http://twistedmatrix.com/trac/wiki/Downloads livecheck.regex "The current release is Twisted (\\d+(?:\\.\\d+)*)" } # versions 12.0.0+ require python 2.5 subport py24-twisted { version 11.1.0 distname Twisted-${version} 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} checksums rmd160 569419f06bd72d658a870cee6ac596f00008a955 \ sha256 7fbb4529aaa3547708bb0a84377107db1e6ae7a6a9940bb8d8b05976c2754f15 }