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 +.include +.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