source: trunk/dports/python/py-twisted/Portfile

Last change on this file was 153124, checked in by devans@…, 12 months ago

py-twisted: build fix, build requires py-setuptools.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 153124 2016-09-25 04:33:54Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup  python 1.0
6
7name                    py-twisted
8version                 16.4.1
9categories-append       devel net
10license                 MIT
11platforms               darwin
12maintainers             mcalhoun free.fr:olv.bonnet openmaintainer
13description             An event-based Python framework for internet applications
14long_description        Twisted is an event-driven networking framework \
15                                written in Python. Twisted supports TCP, UDP, SSL/TLS, \
16                                multicast, Unix sockets, a large number of protocols \
17                                (including HTTP, NNTP, SSH, IRC, FTP, and others), and \
18                                much more.
19
20homepage                http://www.twistedmatrix.com/
21
22set dl_version [join [lrange [split ${version} .] 0 1] .]
23master_sites    http://tmrc.mit.edu/mirror/twisted/Twisted/${dl_version} \
24                http://twistedmatrix.com/Releases/Twisted/${dl_version}
25distname                Twisted-${version}
26use_bzip2               yes
27
28checksums           rmd160  58ef16349fbf5d7a789eeccc67bbf718b200648e \
29                    sha256  1d8d73f006c990744effb35588359fd44d43608649ac0b6b7edc71176e88e816
30
31python.versions 27 34 35
32
33if {${name} ne ${subport}} {
34    depends_build-append  port:py${python.version}-setuptools
35    depends_lib-append    port:py${python.version}-zopeinterface
36    post-destroot {
37        # update the plugin cache
38        system "PYTHONPATH=${destroot}${python.pkgd} ${python.bin} ${filespath}/getPlugins.py"
39    }
40    pre-activate {
41        set cachefile ${python.pkgd}/twisted/plugins/dropin.cache
42        if {[file exists $cachefile] && [registry_file_registered $cachefile] == "0"} {
43            file delete -force $cachefile
44        }
45    }
46    livecheck.type  none
47} else {
48    livecheck.type   regex
49    livecheck.url    http://twistedmatrix.com/trac/wiki/Downloads
50    livecheck.regex  "The current release is Twisted (\\d+(?:\\.\\d+)*)"
51}
Note: See TracBrowser for help on using the repository browser.