# -*- 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 153124 2016-09-25 04:33:54Z devans@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-twisted version 16.4.1 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 58ef16349fbf5d7a789eeccc67bbf718b200648e \ sha256 1d8d73f006c990744effb35588359fd44d43608649ac0b6b7edc71176e88e816 python.versions 27 34 35 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools 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+)*)" }