summaryrefslogtreecommitdiff
path: root/devel/p5-Devel-Cover/Makefile
blob: ee3c6ca7901be511453ba68ccf8145e78f6ddead (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: mat
# $FreeBSD$

PORTNAME=	Devel-Cover
PORTVERSION=	1.21
CATEGORIES=	devel perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Code coverage metrics for Perl

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

TEST_DEPENDS=	p5-Test-Differences>=0:devel/p5-Test-Differences

USES=		perl5
USE_PERL5=	configure

OPTIONS_DEFINE=	CPANCOVER HTML_REPORTS POD_COVERAGE SYNTAX_HIGHLIGHTING
OPTIONS_DEFAULT=CPANCOVER HTML_REPORTS POD_COVERAGE
OPTIONS_SUB=	yes

CPANCOVER_DESC=			Coverage statistics on CPAN modules
CPANCOVER_BUILD_DEPENDS=	p5-Parallel-Iterator>=0:devel/p5-Parallel-Iterator \
				p5-Template-Toolkit>=2:www/p5-Template-Toolkit
CPANCOVER_RUN_DEPENDS=		${CPANCOVER_BUILD_DEPENDS}

HTML_REPORTS=			Build HTML reports with p5-HTML-Parser
HTML_REPORTS_BUILD_DEPENDS=	p5-HTML-Parser>=0:www/p5-HTML-Parser
HTML_REPORTS_RUN_DEPENDS=	${HTML_REPORTS_BUILD_DEPENDS}

POD_COVERAGE_DESC=		POD coverage via p5-Pod-Coverage
POD_COVERAGE_BUILD_DEPENDS=	p5-Pod-Coverage>=0.06:devel/p5-Pod-Coverage
POD_COVERAGE_RUN_DEPENDS=	${POD_COVERAGE_BUILD_DEPENDS}

SYNTAX_HIGHLIGHTING_DESC=		Syntax highlighting via p5-PPI-HTML
SYNTAX_HIGHLIGHTING_BUILD_DEPENDS=	p5-PPI-HTML>=1.07:textproc/p5-PPI-HTML
SYNTAX_HIGHLIGHTING_RUN_DEPENDS=	${SYNTAX_HIGHLIGHTING_BUILD_DEPENDS}

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Devel/Cover/Cover.so

.include <bsd.port.mk>