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

name                py-tldextract
version             3.1.0
revision            0
categories-append   net
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         tldextract accurately separates the gTLD or ccTLD (generic or \
                    country code top-level domain) from the registered domain and \
                    subdomains of a URL.
long_description    ${description}
homepage            https://github.com/john-kurkowski/tldextract
platforms           darwin

python.versions     27 36 37 38 39

checksums           rmd160  4bf31442c98ae5fc68a5b318db016246f4dc516e \
                    sha256  cfae9bc8bda37c3e8c7c8639711ad20e95dc85b207a256b60b0b23d7ff5540ea \
                    size    101874

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     2.2.3
        revision    0
        checksums   rmd160  fa66243b27cd3653739034fe1a94a6319b9a4208 \
                    sha256  ab0e38977a129c72729476d5f8c85a8e1f8e49e9202e1db8dca76e95da7be9a8 \
                    size    64729
    }

    depends_build-append \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-setuptools_scm

    depends_lib-append  \
                    port:py${python.version}-filelock \
                    port:py${python.version}-idna \
                    port:py${python.version}-requests \
                    port:py${python.version}-requests-file

    livecheck.type  none
}
