# -*- 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           perl5 1.0

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         Mail-Audit 2.228
revision            1
maintainers         nomaintainer
categories-append   mail
license             {Artistic-1 GPL}
description         Library for creating easy mail filters
long_description    Mail::Audit was inspired by Tom Christiansen's \
                    audit_mail and deliverlib programs. It allows a \
                    piece of email to be logged, examined, accepted into \
                    a mailbox, filtered, resent elsewhere, rejected, and \
                    so on. It's designed to allow you to easily create \
                    filter programs to stick in a .forward file or \
                    similar.

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  04281c321b255e3b2a27f5386bbae5aa4b442ad7 \
                    sha256  41a42dc3fbead585c732de5e35b46c3d3511358458bc31520abac1946c99d2e4 \
                    size    37156

if {${perl5.major} != ""} {
    depends_lib-append \
                    port:p${perl5.major}-file-homedir \
                    port:p${perl5.major}-file-tempdir \
                    port:p${perl5.major}-mailtools \
                    port:p${perl5.major}-mail-pop3client \
                    port:p${perl5.major}-mime-tools \
                    port:p${perl5.major}-parse-recdescent

    post-patch {
        reinplace "s|#!.*perl|#!${perl5.bin}|" \
            ${worksrcpath}/bin/proc2ma \
            ${worksrcpath}/bin/popread
    }
}
