# New ports collection makefile for:	devel/p5-Test-File-Contents
# Date created:				28 January 2006
# Whom:					Rod Taylor <ports@rbt.ca>
#
# $FreeBSD: ports/devel/p5-Test-File-Contents/Makefile,v 1.4 2006/04/25 20:12:14 leeym Exp $
#

PORTNAME=	Test-File-Contents
PORTVERSION=	0.03
CATEGORIES=	devel perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Test
PKGNAMEPREFIX=	p5-

MAINTAINER=	ports@rbt.ca
COMMENT=	Test routines for examining the contents of files

RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
BUILD_DEPENDS=	${RUN_DEPENDS}
BUILD_DEPENDS+=	${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple

PERL_MODBUILD=	yes

MAN3=	Test::File::Contents.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
post-patch:
	${PERL} -pi -e '$$_ = "" if m{use warnings};' ${WRKSRC}/Build.PL \
		${WRKSRC}/lib/Test/File/Contents.pm
.endif

.include <bsd.port.post.mk>
