aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Devel-Cover/Makefile
blob: 66cc5358e7045e388d524b773e2aca9c4700e1f5 (plain) (blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# New ports collection makefile for:    Devel-Cover
# Date created:    10 October 2003
# Whom:        mat
#
# $FreeBSD$
#

PORTNAME=   Devel-Cover
PORTVERSION=    0.79
PORTREVISION=   1
CATEGORIES= devel perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

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

LICENSE=    ART10 GPLv1
LICENSE_COMB=   dual

BUILD_DEPENDS=  p5-Template-Toolkit>=2:${PORTSDIR}/www/p5-Template-Toolkit \
        p5-Pod-Coverage>=0.06:${PORTSDIR}/devel/p5-Pod-Coverage \
        p5-PPI-HTML>=1.07:${PORTSDIR}/textproc/p5-PPI-HTML \
        p5-Parallel-Iterator>=0:${PORTSDIR}/devel/p5-Parallel-Iterator
RUN_DEPENDS:=   ${BUILD_DEPENDS}

TEST_DEPENDS=   p5-Test-Differences>=0:${PORTSDIR}/devel/p5-Test-Differences \
        p5-Test-Warn>=0:${PORTSDIR}/devel/p5-Test-Warn

PERL_CONFIGURE= yes

MAN1=       cover.1 cpancover.1 gcov2perl.1
MAN3=       Devel::Cover.3 \
        Devel::Cover::Annotation::Git.3 \
        Devel::Cover::Annotation::Random.3 \
        Devel::Cover::Annotation::Svk.3 \
        Devel::Cover::Branch.3 \
        Devel::Cover::Condition.3 \
        Devel::Cover::Condition_and_2.3 \
        Devel::Cover::Condition_and_3.3 \
        Devel::Cover::Condition_or_2.3 \
        Devel::Cover::Condition_or_3.3 \
        Devel::Cover::Condition_xor_4.3 \
        Devel::Cover::Criterion.3 \
        Devel::Cover::DB.3 \
        Devel::Cover::DB::Digests.3 \
        Devel::Cover::DB::File.3 \
        Devel::Cover::DB::IO.3 \
        Devel::Cover::DB::IO::JSON.3 \
        Devel::Cover::DB::IO::Storable.3 \
        Devel::Cover::DB::Structure.3 \
        Devel::Cover::Op.3 \
        Devel::Cover::Pod.3 \
        Devel::Cover::Report::Compilation.3 \
        Devel::Cover::Report::Html.3 \
        Devel::Cover::Report::Html_basic.3 \
        Devel::Cover::Report::Html_minimal.3 \
        Devel::Cover::Report::Html_subtle.3 \
        Devel::Cover::Report::Sort.3 \
        Devel::Cover::Report::Text.3 \
        Devel::Cover::Report::Text2.3 \
        Devel::Cover::Statement.3 \
        Devel::Cover::Subroutine.3 \
        Devel::Cover::Time.3 \
        Devel::Cover::Truth_Table.3 \
        Devel::Cover::Tutorial.3 \
        Devel::Cover::Web.3

.if !defined(NOPORTDOCS)
PORTDOCS=   README

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

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-JSON-PP>=0:${PORTSDIR}/converters/p5-JSON-PP
RUN_DEPENDS+=   p5-JSON-PP>=0:${PORTSDIR}/converters/p5-JSON-PP
.endif

.include <bsd.port.post.mk>