# -*- 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.77.0 v
github.tarball_from archive
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  a4aebf090a9f42de299e89681b62e4b216d1cb68 \
                    sha256  6be85cfa82cf3a75bca03cd49739307f5ca60768624742f7020d36a1c5ee4984 \
                    size    4841215

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