# Created by: James FitzGibbon <jfitz@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_0_0/mail/p5-Mail-Folder/Makefile 327742 2013-09-20 19:59:12Z bapt $

PORTNAME=	Mail-Folder
PORTVERSION=	0.07
CATEGORIES=	mail perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-
DISTNAME=	MailFolder-${PORTVERSION}

MAINTAINER=	chifeng@gmail.com
COMMENT=	Perl module for a folder-independant interface to email folders

BUILD_DEPENDS=	p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools \
		p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate \
		p5-File-Sync>=0:${PORTSDIR}/devel/p5-File-Sync \
		p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools
RUN_DEPENDS:=	${BUILD_DEPENDS}

USES=		perl5
USE_PERL5=	configure

MAN3=		Mail::Folder.3 Mail::Folder::Emaul.3 Mail::Folder::Mbox.3 \
		Mail::Folder::NNTP.3 Mail::Folder::Maildir.3

NO_STAGE=	yes
post-configure:
	@${PERL} -pi -e 's/^FULLEXT.*/FULLEXT=Mail\/Folder/' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>
