From 3e7876c22f2bca4a3273dc8844d3724652cc7824 Mon Sep 17 00:00:00 2001 From: Marcel Denia Date: Wed, 23 Jul 2014 11:46:17 +0200 Subject: [PATCH] lang/perl: Strip encoding pragma The "encoding" pragma is officially deprecated. Makes HTML::Parser/HTML::Entities work. Signed-off-by: Marcel Denia --- lang/perl/perlmod.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/perl/perlmod.mk b/lang/perl/perlmod.mk index f8f0d036c9..05bcc5e743 100644 --- a/lang/perl/perlmod.mk +++ b/lang/perl/perlmod.mk @@ -89,8 +89,8 @@ define perlmod/Install @echo "---> Stripping modules in: $(strip $(1))$(PERL_SITELIB)" find $(strip $(1))$(PERL_SITELIB) -name \*.pm -or -name \*.pl | \ xargs -r sed -i \ - -e '/^=\(head\|pod\|item\|over\|back\)/,/^=cut/d' \ - -e '/^=\(head\|pod\|item\|over\|back\)/,$$$$d' \ + -e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,/^=cut/d' \ + -e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,$$$$d' \ -e '/^#$$$$/d' \ -e '/^#[^!"'"'"']/d' endef