diff options
-rw-r--r-- | net-mgmt/p5-NetAddr-IP/Makefile | 7 | ||||
-rw-r--r-- | net/p5-NetAddr-IP/Makefile | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/net-mgmt/p5-NetAddr-IP/Makefile b/net-mgmt/p5-NetAddr-IP/Makefile index cac55990c41c..3a4ff32be495 100644 --- a/net-mgmt/p5-NetAddr-IP/Makefile +++ b/net-mgmt/p5-NetAddr-IP/Makefile @@ -19,4 +19,11 @@ PERL_CONFIGURE= yes MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= NetAddr::IP.3 +post-patch: + ${PERL} -pi -e 's/\r//;' \ + -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \ + -e '$$_="" if /require 5/;' \ + -e '$$_="" if /use warnings/;' \ + ${WRKSRC}/IP.pm + .include <bsd.port.mk> diff --git a/net/p5-NetAddr-IP/Makefile b/net/p5-NetAddr-IP/Makefile index cac55990c41c..3a4ff32be495 100644 --- a/net/p5-NetAddr-IP/Makefile +++ b/net/p5-NetAddr-IP/Makefile @@ -19,4 +19,11 @@ PERL_CONFIGURE= yes MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= NetAddr::IP.3 +post-patch: + ${PERL} -pi -e 's/\r//;' \ + -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \ + -e '$$_="" if /require 5/;' \ + -e '$$_="" if /use warnings/;' \ + ${WRKSRC}/IP.pm + .include <bsd.port.mk> |