aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Data-TreeDumper/Makefile
blob: a54a99633d61351051ad1e90047bb0b5820da949 (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
# New ports collection makefile for:    Data::TreeDumper
# Date created:             1 August 2004
# Whom:                 Aaron Dalton <aaron@daltons.ca>
#
# $FreeBSD$
#

PORTNAME=   Data-TreeDumper
PORTVERSION=    0.33
CATEGORIES= devel perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Data
PKGNAMEPREFIX=  p5-

MAINTAINER= aaron@FreeBSD.org
COMMENT=    Dumps a data structure in a tree fashion

BUILD_DEPENDS=  ${SITE_PERL}/${PERL_ARCH}/Term/Size.pm:${PORTSDIR}/devel/p5-Term-Size \
        ${SITE_PERL}/Text/Wrap.pm:${PORTSDIR}/textproc/p5-Text-Tabs+Wrap \
        ${SITE_PERL}/Class/ISA.pm:${PORTSDIR}/devel/p5-Class-ISA \
        ${SITE_PERL}/${PERL_ARCH}/Devel/Size.pm:${PORTSDIR}/devel/p5-Devel-Size \
        ${SITE_PERL}/Sort/Naturally.pm:${PORTSDIR}/textproc/p5-Sort-Naturally
RUN_DEPENDS=    ${BUILD_DEPENDS}

MAN3=       Data::TreeDumper.3

PERL_CONFIGURE= yes

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
post-patch:
    @${PERL} -pi -e 's/^our (\S+)/use vars q{$$1};$$1/g;' \
        -e '$$_ = "" if /warnings|5.006/;' \
        -e 's/}\(/}->(/g;' \
        -e '$$_ .= "->" if $$. == 442;' \
        ${WRKSRC}/TreeDumper.pm
.endif

.include <bsd.port.post.mk>