# -*- 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.4.1 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           ${distname}${extract.suffix} \
                    rmd160  5610240fb9702b7293e74a661d99dede568b54ed \
                    sha256  b798ea210346474ce7f90dc062e849615abdbfeac1219d88d16bb1da7ce5566b \
                    size    199818

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

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