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

Last change on this file was 151217, checked in by mojca@…, 15 months ago

py-netlib: fix a syntax error

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151217 2016-08-10 18:35:33Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           netlib
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             0.16
12categories-append   net
13platforms           darwin
14supported_archs     noarch
15license             MIT
16
17maintainers         petr mdeaudelin.net:macports openmaintainer
18
19description         A collection of network utilities from mitmproxy project
20long_description    \
21    Netlib is a collection of network utility classes, used by the pathod \
22    and mitmproxy projects. It differs from other projects in some \
23    fundamental respects, because both pathod and mitmproxy often need to \
24    violate standards. This means that protocols are implemented as small, \
25    well-contained and flexible functions, and are designed to allow \
26    misbehaviour when needed.
27
28homepage            https://pypi.python.org/pypi/${_name}/${version}
29
30distname            ${_name}-${version}
31master_sites        pypi:${_n}/${_name}/
32
33checksums           md5     7c8622364947ae11c9dc39e1bf00a38d \
34                    rmd160  77b0605f59143e6591a7d17e0ecaee88c4beb768 \
35                    sha256  c70ed1915a5662c9ffce4dc97d143209e009cf0035a2f692031a6c47e87e6002
36
37python.versions         27 34 35
38python.default_version  35
39
40if {${name} ne ${subport}} {
41    # Attention:
42    # The package `netlib` was merged into `mitmproxy` in version 0.17.
43    # It is now conflicting with mitmproxy.
44    # If mitmproxy is updated/installed netlib will be disactivated.
45    # This port is still kept because mitmproxy is not yet Py3 compatible.
46
47    if {${python.version} == 27} {
48        conflicts   py${python.version}-mitmproxy
49    }
50
51    depends_build-append    port:py${python.version}-setuptools
52
53    depends_lib-append      port:py${python.version}-asn1 \
54                            port:py${python.version}-certifi \
55                            port:py${python.version}-cryptography \
56                            port:py${python.version}-hpack \
57                            port:py${python.version}-hyperframe \
58                            port:py${python.version}-openssl \
59                            port:py${python.version}-passlib
60
61    if {${python.version} <= 33} {
62        depends_lib-append  port:py${python.version}-backports-ssl_match_hostname
63    }
64
65    livecheck.type  none
66} else {
67    livecheck.type  regex
68    livecheck.url   https://pypi.python.org/pypi/${_name}/json
69    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
70}
Note: See TracBrowser for help on using the repository browser.