# -*- 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/mbrt/gmailctl 0.12.0 v
revision            0

description         \
    Declarative configuration for Gmail filters

long_description    \
    This utility helps you generate and maintain Gmail filters in a \
    declarative way. It has a Jsonnet configuration file that aims to be \
    simpler to write and maintain than using the Gmail web interface, to \
    categorize, label, archive and manage your inbox automatically.

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

# Allow Go to fetch dependencies at build time
go.offline_build no
go.toolchain_min    1.25.0

build.target        ./cmd/${name}

checksums           rmd160  441bf96efbde04966552d15a0ab551cfd9a8e1b4 \
                    sha256  30cd3e21e8f150081c79a2f656d43b46550a795ccc9cb7775bb7e68da686ee95 \
                    size    103489

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