# -*- 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.88.0 v
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  bc7515ef1af6d7bffa7a97658cbdeece031f958c \
                    sha256  5a74ee8651da871b8dbd0cbe8c91d4aa715c70715ec976c6e89b15189b50100e \
                    size    4421432

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