- Resolve issues with implicit lang/perl in extract and patch dependencies - Trim Makefile header Reviewed by: bapt@ (exp-run) Approved by: bapt@ (portmrg@)
27 lines
641 B
Makefile
27 lines
641 B
Makefile
# Created by: Anton Berezin <tobez@tobez.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Text-FixedLength-Extra
|
|
PORTVERSION= 1.1
|
|
CATEGORIES= textproc perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= tobez@FreeBSD.org
|
|
COMMENT= Various niceties for p5-Text-FixedLength lovers
|
|
|
|
BUILD_DEPENDS= p5-Text-FixedLength>=0:${PORTSDIR}/textproc/p5-Text-FixedLength
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
USES= perl5
|
|
USE_PERL5= configure patch
|
|
|
|
MAN3= Text::FixedLength::Extra.3
|
|
|
|
post-patch:
|
|
${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
|
|
-e '$$_="" if /require 5/;' \
|
|
-e '$$_="" if /use warnings/;' \
|
|
${WRKSRC}/Extra.pm
|
|
|
|
.include <bsd.port.mk>
|