summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2017-01-05 05:27:03 +0300
committerGöktürk Yüksek <gokturk@gentoo.org>2017-01-14 22:46:09 -0500
commit65ce1dc9fd1413921df148f1c6826d46b6dea024 (patch)
tree5a811324b5fbbf2c52aee0dc5974a02bd46a0e89 /app-text/po4a/files
parentnet-proxy/3proxy: remove the obsolete <description> tag (diff)
downloadgentoo-65ce1dc9fd1413921df148f1c6826d46b6dea024.tar.gz
gentoo-65ce1dc9fd1413921df148f1c6826d46b6dea024.tar.bz2
gentoo-65ce1dc9fd1413921df148f1c6826d46b6dea024.zip
app-text/po4a: fix sgml and tex module regexp's against perl-5.22
Gentoo-Bug: 604428 Also bump to EAPI=6
Diffstat (limited to 'app-text/po4a/files')
-rw-r--r--app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch b/app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch
new file mode 100644
index 000000000000..a204d5e97217
--- /dev/null
+++ b/app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch
@@ -0,0 +1,44 @@
+Fix sgml and tex regex against perl-5.22. See Gentoo-bug: 604428.
+Based on a patch from upstream git. Original commit info:
+From 44e5c2f02b3166536257bc9d6384d41dda386648 Mon Sep 17 00:00:00 2001
+From: Martin Quinson <martin.quinson@loria.fr>
+Date: Fri, 28 Aug 2015 19:01:17 +0200
+Subject: [PATCH] Port our regex to Perl 5.22 (patch by Roderich Schupp)
+
+---
+ lib/Locale/Po4a/Sgml.pm | 4 ++--
+ lib/Locale/Po4a/TeX.pm | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/lib/Locale/Po4a/Sgml.pm b/lib/Locale/Po4a/Sgml.pm
+index 742e003..3ad5e8d 100644
+--- a/lib/Locale/Po4a/Sgml.pm
++++ b/lib/Locale/Po4a/Sgml.pm
+@@ -672,9 +672,9 @@ sub parse_file {
+ }
+ }
+ }
+- $prolog =~ s/<!--{PO4A-ent-beg-(.*?)}(.*?){PO4A-ent-end}-->/<!ENTITY % $1 SYSTEM "$2">/g;
++ $prolog =~ s/<!--\{PO4A-ent-beg-(.*?)\}(.*?)\{PO4A-ent-end\}-->/<!ENTITY % $1 SYSTEM "$2">/g;
+ # Unprotect undefined inclusions, and die of them
+- $prolog =~ s/{PO4A-percent}/%/sg;
++ $prolog =~ s/\{PO4A-percent\}/%/sg;
+ if ($prolog =~ /%([^;\s]*);/) {
+ die wrap_mod("po4a::sgml",
+ dgettext("po4a",
+diff --git a/lib/Locale/Po4a/TeX.pm b/lib/Locale/Po4a/TeX.pm
+index a78f94b..0faa465 100644
+--- a/lib/Locale/Po4a/TeX.pm
++++ b/lib/Locale/Po4a/TeX.pm
+@@ -1168,7 +1168,7 @@ sub parse {
+ # environment contains an un-closed bracket)
+ if ( ($closed and ($line =~ /^\s*$/ or
+ $line =~ /^\s*$RE_VERBATIM\s*$/))
+- or (in_verbatim(@env) and $line =~ /^\s*\Q$ESCAPE\Eend{$env[-1]}\s*$/)
++ or (in_verbatim(@env) and $line =~ /^\s*\Q$ESCAPE\Eend\{$env[-1]\}\s*$/)
+ ) {
+ # An empty line. This indicates the end of the current
+ # paragraph.
+--
+2.10.2
+