freebsd-ports/textproc/p5-Number-Format/Makefile
Cheng-Lung Sung a0520c1594 - the patch should be removed (tested via 'make test')
- bump PORTREVISION

PR:		ports/103653
Submitted by:	Warren Block <wblock_AT_wonkity dot com>
2006-09-26 14:00:08 +00:00

34 lines
792 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.52
PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Number
PKGNAMEPREFIX= p5-
MAINTAINER= clsung@FreeBSD.org
COMMENT= Perl extension for formatting numbers
PERL_CONFIGURE= yes
MAN3= Number::Format.3
.include <bsd.port.pre.mk>
post-patch:
${PERL} -pi -e 's/en_US/en_US.US-ASCII/' ${WRKSRC}/t/*.t
.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>