# -*- 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-us
version             3.2.0
revision            0

platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         US: The Greatest Package in the World
long_description    A package for easily working with US and state metadata.

homepage            https://github.com/unitedstates/python-us

checksums           rmd160  4c83d39108de4545e414b39c178572ffdc9bc20e \
                    sha256  cb223e85393dcc5171ead0dd212badc47f9667b23700fea3e7ea5f310d545338 \
                    size    16046

python.versions     313

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

    depends_test-append \
                    port:py${python.version}-tz

    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
            ${destroot}${docdir}
    }
}
