# -*- 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.11.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

build.target        ./cmd/${name}

checksums           rmd160  abf759c9d87eaaee51e8dda57a2199b5494ba292 \
                    sha256  6a299e60cfd5e58a327d2768cb9ce791b87d2e8be5293d29a4f4919d00cca2cf \
                    size    98428

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