# -*- 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.44.0.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  68015ba0ca307d5ccfb6884aa7d69ec11439cd76 \
                    sha256  905f43217561aa17a442f345addb12f4d8265c5fd2be5fc6927f8c1a8f79012e \
                    size    395142

python.versions     310 311

if {${name} ne ${subport}} {
    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}
    }
}
