# New ports collection makefile for:	p5-Email-FolderType
# Date created:				August 31 2003
# Whom:					Lars Thegler <lars@thegler.dk>
#
# $FreeBSD: ports/mail/p5-Email-FolderType/Makefile,v 1.4 2005/01/08 17:51:34 lth Exp $
#

PORTNAME=	Email-FolderType
PORTVERSION=	0.8
CATEGORIES=	mail perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Email
PKGNAMEPREFIX=	p5-

MAINTAINER=	lth@FreeBSD.org
COMMENT=	Determine the type of a mail folder

BUILD_DEPENDS=	${SITE_PERL}/Module/Pluggable.pm:${PORTSDIR}/devel/p5-Module-Pluggable
RUN_DEPENDS=	${BUILD_DEPENDS}

PERL_MODBUILD=	yes

MAN3=		Email::FolderType.3 \
		Email::FolderType::Ezmlm.3 \
		Email::FolderType::MH.3 \
		Email::FolderType::Maildir.3 \
		Email::FolderType::Mbox.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} <= 500503
post-patch:
	@${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' \
		${WRKSRC}/lib/Email/FolderType.pm
.endif

.include <bsd.port.post.mk>
