# -*- 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                sqlit-tui
python.rootname     sqlit-tui
version             1.5.1
revision            0

categories-append   databases
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} openmaintainer

description         Terminal UI for SQL databases
long_description    sqlit is a terminal UI for SQL Server, PostgreSQL, MySQL, \
                    SQLite, Oracle, and more.

homepage            https://github.com/Maxteabag/sqlit
distname            sqlit_tui-${version}

checksums           rmd160  48112e74f370b0d881d6879eb77af212896e92d9 \
                    sha256  d836ccd37ef7197a6ccaccc69afb9e50654961c4652daf87fe8cd3a10e32466a \
                    size    10469462

python.default_version 314
python.pep517_backend \
                    hatch

depends_build-append \
                    port:py${python.version}-hatch-vcs

depends_lib-append \
                    port:py${python.version}-docker \
                    port:py${python.version}-keyring \
                    port:py${python.version}-pyperclip \
                    port:py${python.version}-sqlparse \
                    port:py${python.version}-textual \
                    port:py${python.version}-textual-fastdatatable

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