diff options
Diffstat (limited to 'net/p5-DNS-Zone/Makefile')
-rw-r--r-- | net/p5-DNS-Zone/Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/net/p5-DNS-Zone/Makefile b/net/p5-DNS-Zone/Makefile index dc597ec254e7..fa5672fca681 100644 --- a/net/p5-DNS-Zone/Makefile +++ b/net/p5-DNS-Zone/Makefile @@ -18,7 +18,10 @@ COMMENT= DNS::Zone is set of perl modules for name service zone files PERL_CONFIGURE= yes -DOCSDIR= ${PREFIX}/share/doc/p5-DNS-Zone +post-patch: + ${FIND} ${WRKSRC} -name '*.pm' -o -name '*.t' -o -name '*.PL' | \ + ${XARGS} ${PERL} -pi -e '$$_="" if /^use 5/;' \ + -e '$$_="" if /(use|no) warnings/;' post-install: .if !defined(NOPORTDOCS) @@ -26,10 +29,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.include <bsd.port.pre.mk> - -.if ${PERL_LEVEL} < 500600 -IGNORE= "Perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try again." -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> |