diff --git a/www/p5-CGI.pm/Makefile b/www/p5-CGI.pm/Makefile index 964104c93c98..970572943407 100644 --- a/www/p5-CGI.pm/Makefile +++ b/www/p5-CGI.pm/Makefile @@ -46,7 +46,10 @@ post-install: .if ${PERL_LEVEL} < 500601 BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec -BROKEN= "Does not build with perl < 5.6" + +post-patch: + @${PERL} -i -pe '$$_ = "" if /require 5\.6/' ${WRKSRC}/Makefile.PL + .endif .include