commit:     090032eb3ccba85d2513657241ca121e32f40d16
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 10 12:32:06 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sun Dec 10 12:40:18 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=090032eb

app-text/namazu: fix tests with >=dev-lang/perl-5.26

Closes: https://bugs.gentoo.org/623224
Package-Manager: Portage-2.3.13, Repoman-2.3.4

 app-text/namazu/files/namazu-perl-5.26.patch | 22 ++++++++++++++++++++++
 app-text/namazu/namazu-2.0.21.ebuild         |  1 +
 2 files changed, 23 insertions(+)

diff --git a/app-text/namazu/files/namazu-perl-5.26.patch 
b/app-text/namazu/files/namazu-perl-5.26.patch
new file mode 100644
index 00000000000..1b3a4e40bd1
--- /dev/null
+++ b/app-text/namazu/files/namazu-perl-5.26.patch
@@ -0,0 +1,22 @@
+--- a/filter/hnf.pl
++++ b/filter/hnf.pl
+@@ -244,7 +244,7 @@
+         $uri = '?%year%month%hiday#%year%month%day0'; # for hns-1.x
+       }
+       $uri =~ s/%%/\34/g;
+-      $uri =~ s/%{?([a-z]+)}?/$param{$1}/g;
++      $uri =~ s/%\{?([a-z]+)}?/$param{$1}/g;
+       $uri =~ s/\34/%/g;
+       $uri = $hnf::diary_uri . $uri;
+       $uri =~ s/%7E/~/i;
+--- a/filter/mp3.pl
++++ b/filter/mp3.pl
+@@ -152,7 +152,7 @@
+     mp3::get_title($$contref, $weighted_str, $fields);
+     mp3::get_author($$contref, $fields);
+     mp3::get_album($$contref, $fields);
+-    $$contref =~ s/^\w+:{1,1}?//gm;
++    $$contref =~ s/^\w+:?//gm;
+ 
+     return;
+ }

diff --git a/app-text/namazu/namazu-2.0.21.ebuild 
b/app-text/namazu/namazu-2.0.21.ebuild
index 9891e7f58bd..92d9023d9ae 100644
--- a/app-text/namazu/namazu-2.0.21.ebuild
+++ b/app-text/namazu/namazu-2.0.21.ebuild
@@ -36,6 +36,7 @@ DEPEND="${RDEPEND}
 PATCHES=(
        "${FILESDIR}"/${PN}-gentoo.patch
        "${FILESDIR}"/${PN}-perl-5.18.patch
+       "${FILESDIR}"/${PN}-perl-5.26.patch
        "${FILESDIR}"/${P}-memmove.patch
 )
 

Reply via email to