# -*- 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.10.7 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  0e9ad84cb445c39c86fac07983f12c147ab2a15e \
                    sha256  0e1c4dd9d641a9f68d1016082d842c576bde761ae9eba9b434d944766278e681 \
                    size    165433

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