# $Id: Portfile 67068 2010-04-28 11:17:34Z ryandesign@macports.org $

PortSystem 1.0
PortGroup perl5 1.0

perl5.setup		Mail-Audit 2.223
maintainers		nomaintainer
categories-append	mail
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     09083ba028e23d90d764bd402a618671 \
                        sha1    f00517e74bc6f9d8655611638003705e8e9981bf \
                        rmd160  37757c69df754a24b30c8ece0a2afbb9aea16835

platforms		darwin

depends_lib-append		port:p5-mailtools \
				port:p5-mail-pop3client \
				port:p5-mime-tools \
				port:p5-file-tempdir \
                                port:p5-parse-recdescent

if {[info exists supported_archs]} {
    supported_archs noarch
} else {
    universal_variant no
}

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