blob: 5eb19ac5b645cc8b03e78fbccbf0c7662a3fce95 (
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
|
# New ports collection makefile for: sysutils/p5-Filesys-DiskUsage
# Date created: 20 September 2005
# Whom: Alex Deiter <tiamat@komi.mts.ru>
#
# $FreeBSD$
#
PORTNAME= Filesys-DiskUsage
PORTVERSION= 0.04
CATEGORIES= sysutils perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Filesys
PKGNAMEPREFIX= p5-
MAINTAINER= tiamat@komi.mts.ru
COMMENT= Perl equivalent of du(1)
PERL_CONFIGURE= yes
MAN3= Filesys::DiskUsage.3
.include <bsd.port.pre.mk>
post-patch:
@${RM} ${WRKSRC}/lib/Filesys/DiskUsage.pm.orig
.if ${PERL_LEVEL} < 500600
@${PERL} -pi -e '$$_ = "" if /use warnings;/;' \
-e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' \
${WRKSRC}/lib/Filesys/DiskUsage.pm \
${WRKSRC}/Makefile.PL
.endif
.include <bsd.port.post.mk>
|