8b841983d7
- unbreak under old perl (tested under perl 5.005_03, 5.6.2, 5.8.8)
32 lines
715 B
Makefile
32 lines
715 B
Makefile
# New ports collection makefile for: Number::Format
|
|
# Date created: 27 Oct 2001
|
|
# Whom: Seamus Venasse <svenasse@polaris.ca>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= Number-Format
|
|
PORTVERSION= 1.51
|
|
CATEGORIES= textproc perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
MASTER_SITE_SUBDIR= Number
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
COMMENT= Perl extension for formatting numbers
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
MAN3= Number::Format.3
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
.if ${PERL_LEVEL} < 500800
|
|
${PERL} -pi -e '$$_="" if m{5.008}' ${WRKSRC}/Format.pm
|
|
.endif
|
|
.if ${PERL_LEVEL} < 500600
|
|
${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' ${WRKSRC}/Format.pm
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|