From: Akinori Hattori Date: Sun, 10 Dec 2017 12:32:06 +0000 (+0900) Subject: app-text/namazu: fix tests with >=dev-lang/perl-5.26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=090032eb3ccba85d2513657241ca121e32f40d16;p=gentoo.git 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 --- 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 000000000000..1b3a4e40bd10 --- /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 9891e7f58bde..92d9023d9ae1 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 )