# -*- 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/AnalogJ/hatchet 0.0.7 v
go.package          github.com/analogj/hatchet
revision            0

description         Cut down spam in your Email Inbox

long_description    \
    ${name} is a tool to help you manage/prune your Email Inbox. As it \
    processes your inbox, it will keep track the unique sender email \
    addresses and the number of emails from each sender. It will also search \
    the email headers and body for "unsubscribe" links.

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

checksums           rmd160  feefe7c411c2d2f26f029c157056e7196863fcf0 \
                    sha256  4e5b00ac99b205d28b07b4a7b0cead22bf319616187f49490a0784a78765c180 \
                    size    201924

# Re-enable Go modules so that we can build with -mod=vendor
go.offline_build no
build.cmd           make
build.args          build

destroot {
    xinstall -m 0755 [glob ${worksrcpath}/${name}-${goos}-*] \
        ${destroot}${prefix}/bin/${name}
}
