# -*- 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/ddddddO/gtree 1.14.9 v
revision            0

homepage            https://ddddddo.github.io/gtree

description         \
    Generate directory trees and the directories using Markdown or \
    Programmatically. Provide CLI, Golang library and Web (using WebAssembly).

long_description    {*}${description}

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

build.pre_args-append \
    -ldflags \" \
        -X main.Version=${version} \
        -X main.Revision=${revision} \
    \"

build.args          ./cmd/${name}

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

checksums           ${distname}${extract.suffix} \
                        rmd160  a347dc3b5387db4410ae126e854c4bc593062190 \
                        sha256  fbedb935bacd045e67a2d91402fa441da0824ff67941bfb5903a653db817e623 \
                        size    3846936

go.vendors          golang.org/x/sys \
                        lock    v0.42.0 \
                        rmd160  9bf28fd4fb2566093e52db9828dace0cad68ece6 \
                        sha256  95cce678922f8cd653b53365de74085c97ca91d3f0c1ac20d96df2f0657d4e02 \
                        size    1540175 \
                    golang.org/x/sync \
                        lock    v0.21.0 \
                        rmd160  b554bb6d6dfc688ed0789ae29ab25419efccb0e0 \
                        sha256  ecc36b5b6370e5ac8d1f3f41803c7c78b8be2c4ac38cac83a27bf19f7d20ce34 \
                        size    18194 \
                    go.uber.org/goleak \
                        repo    github.com/uber-go/goleak \
                        lock    v1.3.0 \
                        rmd160  aa886ccda5a90bd29394eb5cfdffd3ec4d7ce3cb \
                        sha256  d514163121ce220dd536aed595e5db68a469fd2622a93542f05eaeebc767ec3c \
                        size    20063 \
                    github.com/urfave/cli/v3 \
                        lock    v3.9.1 \
                        rmd160  936dc39a58d7072d25968973f1a97ed0c9c4c943 \
                        sha256  9670e2fd866aeabbc7658ed37800416eec03adcf4179e5922325a6cb3b75843a \
                        size    6814492 \
                    github.com/pelletier/go-toml/v2 \
                        lock    v2.3.1 \
                        rmd160  c330d7f58ca082a7905351732d263d0a24b6cd79 \
                        sha256  47bc2a3e665227170b5a0fd1d0f9aacbb6d0e88c2e2c3260c075db6d6fe45508 \
                        size    927523 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.20 \
                        rmd160  ef20ccdf87de8b704c0c7118625b2beb31d8f1b4 \
                        sha256  397549e98cf5d40df585f31dc7902f017c37be88c64311dd2b4aeccab4009949 \
                        size    4717 \
                    github.com/mattn/go-colorable \
                        lock    v0.1.14 \
                        rmd160  5b6117d2728f6478faf0be5b8790425fed6c4ad8 \
                        sha256  6661917405b168f0c8b92a2be524e668ee1c29b393353639453cb8f9c2f7eff8 \
                        size    9806 \
                    github.com/goccy/go-yaml \
                        lock    v1.19.2 \
                        rmd160  07fa4d9bd9e018a5110b7b2e88cb37fab3e45a87 \
                        sha256  1522fe58003c4d6185327ef6b8e1f3189cc10e1dd8f59612099cf514eb7dd12f \
                        size    666918 \
                    github.com/fatih/color \
                        lock    v1.19.0 \
                        rmd160  a64620e5587b3d1eb425e15d7fc1ccc7b0a280f2 \
                        sha256  1203fa77d5f8d487636a021778e626c37c37e4eeb103c580f722339c400ae039 \
                        size    13341
