# New ports collection makefile for:	Physics-Unit
# Date created:				2010-09-03
# Whom:					Frederic Culot <frederic@culot.org>
#
# $FreeBSD: ports/science/p5-Physics-Unit/Makefile,v 1.2 2010/10/20 05:53:19 culot Exp $
#

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

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

PERL_CONFIGURE=	yes

MAN3=		Physics::Unit.3 Physics::UnitImpl.3 Physics::Unit::Scalar.3 \
		Physics::Unit::ScalarImpl.3 Physics::Unit::ScalarSubtypes.3 \
		Physics::Unit::Vector.3

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

.include <bsd.port.mk>
