aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/p5-Email-MIME-Attachment-Stripper/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/p5-Email-MIME-Attachment-Stripper/Makefile b/mail/p5-Email-MIME-Attachment-Stripper/Makefile
index 6795c420117..16097d0a4b2 100644
--- a/mail/p5-Email-MIME-Attachment-Stripper/Makefile
+++ b/mail/p5-Email-MIME-Attachment-Stripper/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Email-MIME-Attachment-Stripper
PORTVERSION= 1.3
+PORTREVISION= 1
CATEGORIES= mail perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Email
@@ -29,6 +30,10 @@ MAN3= Email::MIME::Attachment::Stripper.3
post-patch:
${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' \
${WRKSRC}/lib/Email/MIME/Attachment/Stripper.pm
+ ${PERL} -pi -e '$$_ = "" if (/use warnings/);' \
+ ${WRKSRC}/Makefile.PL \
+ ${WRKSRC}/t/01.t \
+ ${WRKSRC}/lib/Email/MIME/Attachment/Stripper.pm
.endif
.include <bsd.port.post.mk>