# -*- 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-agate-dbf
version             0.2.4
distname            agate_dbf-${version}
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {gmail.com:esafak @esafak} openmaintainer

description         Adds read support for DBF files to agate
long_description    {*}${description}

homepage            https://agate-dbf.readthedocs.io

checksums           rmd160  07c0d4e61daad550856933263c6a4282a5b2c7e0 \
                    sha256  6554828b10048a76dbb5bc4eff8911e059ea2b47155b7a89351e382915ca16fc \
                    size    7547

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-agate \
                        port:py${python.version}-dbfread

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst COPYING \
           AUTHORS.rst ${destroot}${docdir}
    }
    test.run        yes
}
