# -*- 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-apsw
version             3.54.1.0
revision            0

license             zlib
maintainers         nomaintainer

description         Another Python SQLite wrapper
long_description    APSW is a Python wrapper for the SQLite embedded relational database engine.
homepage            https://rogerbinns.github.io/apsw

checksums           rmd160  0ddba98f957c096d11fc65e83c6020219b99cf97 \
                    sha256  d9fd64ed76dc0f3d2265d4aeedb74d678c2ac7dffbd4e8ba05bf9a87aa7c34d3 \
                    size    1268272

python.versions     314 315

if {${name} ne ${subport}} {
    patchfiles      patch-setup.apsw.diff

    depends_lib-append \
                    port:sqlite3

    test.run        yes

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