# -*- 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.96.1 v
go.toolchain_min    1.26.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  740fc50a4432f7d47dfe00ba151acd8072800635 \
                    sha256  84dd9ec88c6803be57df27f92a27a91d03e4e79437242caa4b7b52eef48e9979 \
                    size    4449972

# 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/
}
