pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/po4a Avoid needing additional dependency not ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cd0a052a03a2
branches:  trunk
changeset: 388752:cd0a052a03a2
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Nov 26 03:40:21 2022 +0000

description:
Avoid needing additional dependency not yet in pkgsrc (or
still-experimental core feature). Bump PKGREVISION.

diffstat:

 textproc/po4a/Makefile                              |   6 ++-
 textproc/po4a/distinfo                              |   3 +-
 textproc/po4a/patches/patch-lib_Locale_Po4a_Text.pm |  30 +++++++++++++++++++++
 3 files changed, 36 insertions(+), 3 deletions(-)

diffs (68 lines):

diff -r 2298da82a54b -r cd0a052a03a2 textproc/po4a/Makefile
--- a/textproc/po4a/Makefile    Sat Nov 26 00:52:26 2022 +0000
+++ b/textproc/po4a/Makefile    Sat Nov 26 03:40:21 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.53 2022/11/23 16:21:12 adam Exp $
+# $NetBSD: Makefile,v 1.54 2022/11/26 03:40:21 schmonz Exp $
 
 DISTNAME=      po4a-0.68
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mquinson/}
 GITHUB_RELEASE=        v${PKGVERSION_NOREV}
@@ -11,6 +11,8 @@
 COMMENT=       Tool for using gettext where it was not intended to be used
 LICENSE=       gnu-gpl-v2
 
+#DEPENDS+=     /p5-Keyword-Syntax-Try
+
 DEPENDS+=      docbook-xsl-[0-9]*:../../textproc/docbook-xsl
 DEPENDS+=      p5-gettext>=1.01:../../devel/p5-gettext
 DEPENDS+=      p5-SGMLS-[0-9]*:../../textproc/p5-SGMLS
diff -r 2298da82a54b -r cd0a052a03a2 textproc/po4a/distinfo
--- a/textproc/po4a/distinfo    Sat Nov 26 00:52:26 2022 +0000
+++ b/textproc/po4a/distinfo    Sat Nov 26 03:40:21 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.24 2022/11/15 08:54:12 adam Exp $
+$NetBSD: distinfo,v 1.25 2022/11/26 03:40:21 schmonz Exp $
 
 BLAKE2s (po4a-0.68.tar.gz) = dd89f385879a4458793781126cfe2c8940f5afabd0e47299673395201a7e41d6
 SHA512 (po4a-0.68.tar.gz) = d7c60a3647d8f4265ce6f016d33430c72775ae19eb2efb240532545b08280368fea70db3360131f6537eb7cc72c19299dff4b6f938ac09cbef1b2db1a93d996e
 Size (po4a-0.68.tar.gz) = 4605485 bytes
 SHA1 (patch-Po4aBuilder.pm) = 1ce48fe26abeeabbfaddaf4cdb21389cbf18dd4f
+SHA1 (patch-lib_Locale_Po4a_Text.pm) = d019287e6c03671da4433689691b5447a665208e
diff -r 2298da82a54b -r cd0a052a03a2 textproc/po4a/patches/patch-lib_Locale_Po4a_Text.pm
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/po4a/patches/patch-lib_Locale_Po4a_Text.pm       Sat Nov 26 03:40:21 2022 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-lib_Locale_Po4a_Text.pm,v 1.1 2022/11/26 03:40:21 schmonz Exp $
+
+Avoid needing additional dependency not yet in pkgsrc (or
+still-experimental core feature).
+
+--- lib/Locale/Po4a/Text.pm.orig       2022-09-04 14:32:26.000000000 +0000
++++ lib/Locale/Po4a/Text.pm
+@@ -58,7 +58,6 @@ use vars qw(@ISA @EXPORT);
+ use Locale::Po4a::TransTractor;
+ use Locale::Po4a::Common;
+ use YAML::Tiny;
+-use Syntax::Keyword::Try;
+ 
+ =head1 OPTIONS ACCEPTED BY THIS MODULE
+ 
+@@ -602,11 +601,10 @@ sub parse_markdown_yaml_front_matter {
+ 
+     my $yamlarray;    # the parsed YFM content
+     my $yamlres;      # containing the parse error, if any
+-    try {
++    eval q{
+         $yamlarray = YAML::Tiny->read_string($yfm);
+-    } catch {
+-        $yamlres = $@;
+-    }
++    };
++    $yamlres = $@ if $@;
+ 
+     if ( defined($yamlres) ) {
+         if ($yfm_lenient) {



Home | Main Index | Thread Index | Old Index