# -*- 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           golang 1.0

go.setup            github.com/k1LoW/tbls 1.95.0 v
go.toolchain_min    1.25.8
revision            0

description         CI-Friendly tool for documenting a database, written in Go

long_description    \
    ${name} documents a database automatically in Github-flavored Markdown, \
    and can output the schema in Markdown, DOT, PlantUML, SVG/PNG/JPG, JSON, \
    YAML, and more. It supports many database types and is CI-friendly.

categories          databases
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  44c87811ecbad664994a2c1d7b5c8aef5451a8f0 \
                    sha256  2133a6a7586e0f96189d6e06c90b3ac80457c42a3fbd59f9ca7896afdd39c4f3 \
                    size    4430745

# Allow Go to download dependencies during build time
go.offline_build no

build.pre_args-append \
    -ldflags \
    \"-X ${go.package}/version.Version=${github.tag_prefix}${version}\"

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
