aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Test-Harness/Makefile
blob: 6f0356652fd11f595f72a41e98de6dacc0be6ad0 (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
# New ports collection makefile for:    p5-Test-Harness
# Date Created:             13 Aug 2001
# Whom:                 Shell Hung <shell@shellhung.org>
#
# $FreeBSD$
#

PORTNAME=   Test-Harness
PORTVERSION=    2.42
CATEGORIES= devel perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Test
PKGNAMEPREFIX=  p5-

MAINTAINER= demon@FreeBSD.org
COMMENT=    Run perl standard test scripts with statistics

PERL_CONFIGURE= yes
INSTALL_TARGET= pure_install

MAN1=       prove.1
MAN3=       Test::Harness.3 Test::Harness::Assert.3 \
        Test::Harness::Iterator.3 Test::Harness::Straps.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500601
BUILD_DEPENDS+= ${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
RUN_DEPENDS+=   ${BUILD_DEPENDS}
.endif

.if ${PERL_LEVEL} >= 500800
.undef MAN1
PLIST_SUB+= PL_FILES="@comment "
.else
PLIST_SUB+= PL_FILES=""
.endif

post-patch:
    @${REINPLACE_CMD} -e '/INSTALLDIRS/d' ${WRKSRC}/Makefile.PL
.if ${PERL_LEVEL} >= 500800
    @${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
.endif

.include <bsd.port.post.mk>