diff options
-rw-r--r-- | devel/p5-Test-Pod-Coverage/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/p5-Test-Pod-Coverage/Makefile b/devel/p5-Test-Pod-Coverage/Makefile index d28b1fc3d5ee..149292a52816 100644 --- a/devel/p5-Test-Pod-Coverage/Makefile +++ b/devel/p5-Test-Pod-Coverage/Makefile @@ -24,4 +24,12 @@ PERL_CONFIGURE= YES MAN3= Test::Pod::Coverage.3 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.if ${PERL_LEVEL} <= 500503 +post-patch: + @${PERL} -pi -e '$$_ = "" if /use warnings;/;' \ + -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' \ + ${WRKSRC}/Makefile.PL \ + ${WRKSRC}/Coverage.pm +.endif +.include <bsd.port.post.mk> |