# -*- 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.26 5.28 5.30
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.

checksums           md5     92b3911cf6d71d8fa0ccb1359711c48b \
                    sha1    0e06594d2b4a291f878e3a1f09983aad0aa969c2 \
                    rmd160  04281c321b255e3b2a27f5386bbae5aa4b442ad7

platforms           darwin

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
    }

    supported_archs noarch
}
