# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        cannatag ldap3 2.6 v
name                py-ldap3

categories-append   net www
platforms           darwin
supported_archs     noarch
license             LGPL-3+

maintainers         nomaintainer

description         A strictly RFC 4510 conforming LDAP V3 pure Python client library
long_description    \
    ldap3 is a strictly RFC 4510 conforming LDAP V3 pure Python client \
    library. The same codebase runs in Python 2, Python 3, PyPy and PyPy3.

checksums           rmd160  f0bb4426d0612101cda0e56337751151fb62bfe2 \
                    sha256  d73fdfcefeb675cfbd6a1b79dc02017d180723330a2e549d89ea3b4a817c6097 \
                    size    929753

python.versions     37 38

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools

    depends_lib-append      port:py${python.version}-asn1

    # No tests as upstream tests are designed not for running outside Travis CI

    livecheck.type  none
} else {
    livecheck.type  pypi
}

foreach {old new} {27 37 36 37} {
    subport py${old}-${python.rootname} "
        replaced_by py${new}-${python.rootname}
        PortGroup obsolete 1.0
    "
}