# $Id: Portfile 87482 2011-11-23 15:20:49Z jmr@macports.org $

PortSystem 1.0
PortGroup perl5 1.0

perl5.setup		Mail-Audit 2.223
revision        2
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     09083ba028e23d90d764bd402a618671 \
                        sha1    f00517e74bc6f9d8655611638003705e8e9981bf \
                        rmd160  37757c69df754a24b30c8ece0a2afbb9aea16835

platforms		darwin

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

supported_archs noarch

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