# New ports collection makefile for:	p5-DateTime-Format-ISO8601
# Date created:	   7 july 2003
# Whom:		   Mathieu Arnold <m@absolight.net>
#
# $FreeBSD: ports/devel/p5-DateTime-Format-ISO8601/Makefile,v 1.4 2003/11/21 12:32:04 mat Exp $
#

PORTNAME=	DateTime-Format-ISO8601
PORTVERSION=	0.04
CATEGORIES=	devel perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	DateTime
PKGNAMEPREFIX=	p5-

MAINTAINER=	mat@FreeBSD.org
COMMENT=	Parse ISO8601 formats

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/DateTime.pm:${PORTSDIR}/devel/p5-DateTime \
		${SITE_PERL}/DateTime/Format/Builder.pm:${PORTSDIR}/devel/p5-DateTime-Format-Builder

PERL_CONFIGURE=	yes

MAN3=		DateTime::Format::ISO8601.3

.include "../../devel/p5-Module-Build/inc.build.mk"
.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
post-patch:
	@${PERL} -pi -e '$$_ = "" if /use warnings/;' \
		 ${WRKSRC}/lib/DateTime/Format/ISO8601.pm
.endif

.include <bsd.port.post.mk>
