# -*- 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
PortGroup           github  1.0

go.setup            github.com/numtide/treefmt 2.5.0 v
go.package          github.com/numtide/treefmt/v2
go.offline_build    no
revision            0

homepage            https://treefmt.com/

description         One CLI to format your repo

long_description    \
    {*}${description}. ${name} applies all the needed formatters to your \
    project with one command line.

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

checksums           rmd160  9c721cea5d8f724899b553adee9fb13a7ced4c75 \
                    sha256  0d30d2d2a0faf642f8c13c00b7e71a58e4e72f0c403a0e478caea4ab596ad8f8 \
                    size    198241

build.args-append   \
    -ldflags \"-X ${go.package}/build.Version=v${version}\"

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