# -*- 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-publicsuffix2
version             2.20191221
revision            0

categories-append   net
license             {MIT MPL-2}
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         Get a public suffix for a domain name using the Public Suffix List
long_description    {*}${description}

homepage            https://github.com/nexB/python-publicsuffix2

checksums           rmd160  bd24ca642bfb156704e96b43114bfea7d54c3a09 \
                    sha256  00f8cc31aa8d0d5592a5ced19cccba7de428ebca985db26ac852d920ddd6fe7b \
                    size    99592

python.versions     310 311 312 313 314

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

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} CHANGELOG.rst publicsuffix2.LICENSE \
            README.rst ${destroot}${prefix}/share/doc/${subport}
    }
}
