# -*- 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

PortSystem          1.0
PortGroup           obsolete 1.0
PortGroup           python 1.0

name                py-netlib
version             0.16_1
categories-append   net
platforms           darwin
supported_archs     noarch
license             MIT

maintainers         {petr @petrrr} openmaintainer

python.versions     27 34 35 36


if {${name} ne ${subport}} {
    # Attention:
    # The package `netlib` was merged into `mitmproxy` in version 0.17.
    # It is now conflicting with mitmproxy.
    # If mitmproxy is updated/installed netlib will be disactivated.
    # This port is still kept because mitmproxy is not yet Py3 compatible.

    if {${python.version} == 36} {
        conflicts   py${python.version}-mitmproxy
        replaced_by py${python.version}-mitmproxy
    }
} else {
    replaced_by     py-netlib
}


# The package is obsolete so livecheck does not make sense any more
livecheck.type      none

# Remove this part after 2019-12-12