app-text/xindy: Fix building with perl-5.26, #622702
authorMartin Väth <martin@mvath.de>
Sun, 25 Jun 2017 18:10:17 +0000 (20:10 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 26 Jun 2017 09:21:36 +0000 (11:21 +0200)
app-text/xindy/files/xindy-2.4-perl5.26.patch [new file with mode: 0644]
app-text/xindy/xindy-2.4-r1.ebuild

diff --git a/app-text/xindy/files/xindy-2.4-perl5.26.patch b/app-text/xindy/files/xindy-2.4-perl5.26.patch
new file mode 100644 (file)
index 0000000..657b5e9
--- /dev/null
@@ -0,0 +1,11 @@
+--- xindy-2.4/make-rules/inputenc/make-inp-rules.pl
++++ xindy-2.4/make-rules/inputenc/make-inp-rules.pl
+@@ -8,7 +8,7 @@
+ 
+ 
+ while (<STDIN>) {
+-  if (/\\indexentry{(.+)--([8-9a-f][0-9a-f])\}\{1\}/) {
++  if (/\\indexentry\{(.+)--([8-9a-f][0-9a-f])\}\{1\}/) {
+     if (!($1 =~ /inputenc Error/)) {
+       $i = hex($2);
+       $macro = $1;
index d85f229fad3dafffc22d489c6297d73bc4c92104..4575091c5636f7e2ee680012875e99666fd6d19a 100644 (file)
@@ -24,7 +24,8 @@ DEPEND="${RDEPEND}
 
 PATCHES=("${FILESDIR}"/${P}-configure.patch
        "${FILESDIR}"/${P}-locale.patch
-       "${FILESDIR}"/${P}-nogrep.patch)
+       "${FILESDIR}"/${P}-nogrep.patch
+       "${FILESDIR}"/${P}-perl5.26.patch)
 DOCS=(AUTHORS ChangeLog.Gour NEWS README)
 
 src_prepare() {