# New ports collection makefile for:	Math::Calc::Units
# Date created:				25 Jan 2002
# Whom:					Seamus Venasse <svenasse@polaris.ca>
#
# $FreeBSD: ports/math/p5-Math-Calc-Units/Makefile,v 1.8 2006/06/29 01:48:18 leeym Exp $
#

PORTNAME=	Math-Calc-Units
PORTVERSION=	1.06
CATEGORIES=	math perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Math
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Human-readable unit-aware calculator

PERL_CONFIGURE=	yes

MAN3=		Math::Calc::Units.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
BUILD_DEPENDS+=	${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
post-patch:
	${PERL} -pi -e 's/ our / my /' ${WRKSRC}/Units/Convert/Base.pm
.endif

.include <bsd.port.post.mk>
