# New ports collection makefile for:	Physics-Unit
# Date created:				2010-09-03
# Whom:					Frederic Culot <frederic@culot.org>
#
# $FreeBSD: branches/RELEASE_8_4_0/science/p5-Physics-Unit/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	Physics-Unit
PORTVERSION=	0.53
CATEGORIES=	science perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	culot@FreeBSD.org
COMMENT=	Manipulate Physics units and dimensions

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

PERL_MODBUILD=	yes

MAN1=		physics-unit.1
MAN3=		Physics::Unit.3 \
		Physics::Unit::Implementation.3 \
		Physics::Unit::Scalar.3 \
		Physics::Unit::Scalar::Implementation.3 \
		Physics::Unit::UnitsByName.3 \
		Physics::Unit::UnitsByType.3

post-install:
.if !defined(NOPORTEXAMPLES)
	${MKDIR} ${EXAMPLESDIR}
	(cd ${WRKSRC}/eg/ && ${COPYTREE_SHARE} '*.pl' ${EXAMPLESDIR})
.endif

.include <bsd.port.mk>
