mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
lang/perl: Strip encoding pragma
The "encoding" pragma is officially deprecated. Makes HTML::Parser/HTML::Entities work. Signed-off-by: Marcel Denia <naoir@gmx.net>
This commit is contained in:
@@ -89,8 +89,8 @@ define perlmod/Install
|
|||||||
@echo "---> Stripping modules in: $(strip $(1))$(PERL_SITELIB)"
|
@echo "---> Stripping modules in: $(strip $(1))$(PERL_SITELIB)"
|
||||||
find $(strip $(1))$(PERL_SITELIB) -name \*.pm -or -name \*.pl | \
|
find $(strip $(1))$(PERL_SITELIB) -name \*.pm -or -name \*.pl | \
|
||||||
xargs -r sed -i \
|
xargs -r sed -i \
|
||||||
-e '/^=\(head\|pod\|item\|over\|back\)/,/^=cut/d' \
|
-e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,/^=cut/d' \
|
||||||
-e '/^=\(head\|pod\|item\|over\|back\)/,$$$$d' \
|
-e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,$$$$d' \
|
||||||
-e '/^#$$$$/d' \
|
-e '/^#$$$$/d' \
|
||||||
-e '/^#[^!"'"'"']/d'
|
-e '/^#[^!"'"'"']/d'
|
||||||
endef
|
endef
|
||||||
|
|||||||
Reference in New Issue
Block a user