From c51725a7354a992bb286bffd84728eb176f87045 Mon Sep 17 00:00:00 2001 From: taca Date: Mon, 30 Apr 2018 08:15:11 +0000 Subject: textproc/namazu: fix regular expression error for perl 5.26 Fix regular expression error for perl 5.26 in filter/hnf.pl. Bump PKGREVISION. --- textproc/namazu/Makefile | 4 ++-- textproc/namazu/distinfo | 3 ++- textproc/namazu/patches/patch-filter_hnf.pl | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 textproc/namazu/patches/patch-filter_hnf.pl diff --git a/textproc/namazu/Makefile b/textproc/namazu/Makefile index 738a14c5169..a11cb828cc6 100644 --- a/textproc/namazu/Makefile +++ b/textproc/namazu/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.14 2016/07/09 06:39:06 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2018/04/30 08:15:11 taca Exp $ DISTNAME= namazu-2.0.21 -PKGREVISION= 6 +PKGREVISION= 7 CATEGORIES= japanese textproc www MASTER_SITES= http://www.namazu.org/stable/ diff --git a/textproc/namazu/distinfo b/textproc/namazu/distinfo index 9d928ded05b..2184468ea2b 100644 --- a/textproc/namazu/distinfo +++ b/textproc/namazu/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.7 2015/11/04 01:59:41 agc Exp $ +$NetBSD: distinfo,v 1.8 2018/04/30 08:15:11 taca Exp $ SHA1 (namazu-2.0.21.tar.gz) = 35aaff34d0cdbe96fff24da87671b6f902bb7d43 RMD160 (namazu-2.0.21.tar.gz) = b5ac1a114dc4730c56a46c24130899f10d37e9bb SHA512 (namazu-2.0.21.tar.gz) = c0ce1b8c8b8ce30ee7d28cfed790a9c8585d1b468eefe2ba4ac70976e09329ae04a3a3bbf0b86b9673cfdf206f2b103896daca2f053062f451884fa659b31ea6 Size (namazu-2.0.21.tar.gz) = 1394048 bytes SHA1 (patch-ab) = 15e8b6b67885fe76932e8b749fa8ab64f6faf1d8 +SHA1 (patch-filter_hnf.pl) = 2f304b13dea37f10bf458142dc62a31f08c239a0 SHA1 (patch-filter_mp3.pl) = 53d150e0384ee8acdd672e9d644ee1a60153c691 diff --git a/textproc/namazu/patches/patch-filter_hnf.pl b/textproc/namazu/patches/patch-filter_hnf.pl new file mode 100644 index 00000000000..ddc6936dc1d --- /dev/null +++ b/textproc/namazu/patches/patch-filter_hnf.pl @@ -0,0 +1,15 @@ +$NetBSD: patch-filter_hnf.pl,v 1.1 2018/04/30 08:15:11 taca Exp $ + +Fix regular expression error with Perl 5.26. + +--- filter/hnf.pl.orig 2008-05-09 07:32:14.000000000 +0000 ++++ filter/hnf.pl +@@ -244,7 +244,7 @@ sub get_uri ($$) { + $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; -- cgit v1.2.3