# -*- 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-sql
version             0.5.8
revision            0

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

description         agate-sql adds SQL read/write support to agate.
long_description    {*}${description}

homepage            https://agate-sql.readthedocs.org/

checksums           rmd160  11e6b3b8198585aa1b2e1bd8b023ef3ec9b8c013 \
                    sha256  581e062ae878cc087d3d0948670d46b16589df0790bf814524b0587a359f2ada \
                    size    15182

python.versions     310 311 312 313

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

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