app-text/namazu: fix tests with >=dev-lang/perl-5.26
authorAkinori Hattori <hattya@gentoo.org>
Sun, 10 Dec 2017 12:32:06 +0000 (21:32 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sun, 10 Dec 2017 12:40:18 +0000 (21:40 +0900)
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 [new file with mode: 0644]
app-text/namazu/namazu-2.0.21.ebuild

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 (file)
index 0000000..1b3a4e4
--- /dev/null
@@ -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;
+ }
index 9891e7f58bde684b75ba0b5d13e2584a5ecd16db..92d9023d9ae10eb093d7144bfffbc9ea55be9ba2 100644 (file)
@@ -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
 )