# Created by: Mathieu Arnold <m@absolight.net>
# $FreeBSD: branches/RELENG_9_2_0/devel/p5-DateTime-Format-Epoch/Makefile 324174 2013-08-02 18:52:07Z mat $

PORTNAME=	DateTime-Format-Epoch
PORTVERSION=	0.13
PORTREVISION=	2
CATEGORIES=	devel perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Convert DateTimes to/from epoch seconds

RUN_DEPENDS=	p5-Params-Validate>=0:${PORTSDIR}/devel/p5-Params-Validate \
		p5-DateTime>=0.31:${PORTSDIR}/devel/p5-DateTime
BUILD_DEPENDS:=	${RUN_DEPENDS}

PORTSCOUT=	skipv:0.801

USES=		perl5
USE_PERL5=	modbuild

MAN3=		DateTime::Format::Epoch.3 \
		DateTime::Format::Epoch::ActiveDirectory.3 \
		DateTime::Format::Epoch::DotNet.3 \
		DateTime::Format::Epoch::JD.3 \
		DateTime::Format::Epoch::Lilian.3 \
		DateTime::Format::Epoch::MJD.3 \
		DateTime::Format::Epoch::MacOS.3 \
		DateTime::Format::Epoch::RJD.3 \
		DateTime::Format::Epoch::RataDie.3 \
		DateTime::Format::Epoch::TAI64.3 \
		DateTime::Format::Epoch::TJD.3 \
		DateTime::Format::Epoch::Unix.3

.if !defined(NOPORTDOCS)
PORTDOCS=	Changes README TODO

post-install:
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif

.include <bsd.port.mk>
