aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Devel-Cover/Makefile
blob: a03a0e884187d7daa410e2f786e1b68ee0196984 (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
# New ports collection makefile for:    Devel-Cover
# Date created:    10 October 2003
# Whom:        mat
#
# $FreeBSD$
#

PORTNAME=   Devel-Cover
PORTVERSION=    0.52
CATEGORIES= devel perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Devel
PKGNAMEPREFIX=  p5-

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

BUILD_DEPENDS=  ${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \
        ${SITE_PERL}/${PERL_ARCH}/Pod/Coverage.pm:${PORTSDIR}/devel/p5-Pod-Coverage \
        ${SITE_PERL}/Test/Differences.pm:${PORTSDIR}/devel/p5-Test-Differences
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_CONFIGURE= yes

MAN3=       Devel::Cover.3 \
        Devel::Cover::Annotation::Random.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::File.3 \
        Devel::Cover::DB::Structure.3 \
        Devel::Cover::Op.3 \
        Devel::Cover::Pod.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
MAN1=       cover.1 gcov2perl.1

.if !defined(NOPORTDOCS)
PORTDOCS=   BUGS CHANGES README TODO

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} < 500800
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
        ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
.if ${PERL_LEVEL} < 500601
IGNORE=     Needs 5.6.1 or better
.endif
.endif

.include <bsd.port.post.mk>