# -*- 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.2.0 v
go.package          git.numtide.com/numtide/treefmt
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  2b5237a7f0feeea366be79ae91decade8369ceb0 \
                    sha256  9ddb3eb4a03c7d273754dc250f485be8e23b7ef94446576d7e97aaa79e0c1463 \
                    size    190803

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

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