lang/perl: Strip encoding pragma
authorMarcel Denia <naoir@gmx.net>
Wed, 23 Jul 2014 09:46:17 +0000 (11:46 +0200)
committerMarcel Denia <naoir@gmx.net>
Thu, 24 Jul 2014 01:04:31 +0000 (03:04 +0200)
The "encoding" pragma is officially deprecated.
Makes HTML::Parser/HTML::Entities work.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl/perlmod.mk

index f8f0d036c98f732014e5bd00a1ae2ce07bcb29e1..05bcc5e74371c2e45ef30701170104de0d7dfc11 100644 (file)
@@ -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