From 48b0710d1143b9289cc4e7bc77796db20de4f356 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Thu, 11 Nov 2021 10:14:10 +0100 Subject: [PATCH] po4a: update to 0.65 --- .../po4a/patches/dont-pipe-into-onsgmls.patch | 23 +++++++++++++++++++ srcpkgs/po4a/template | 5 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/po4a/patches/dont-pipe-into-onsgmls.patch diff --git a/srcpkgs/po4a/patches/dont-pipe-into-onsgmls.patch b/srcpkgs/po4a/patches/dont-pipe-into-onsgmls.patch new file mode 100644 index 000000000000..a8a860d32350 --- /dev/null +++ b/srcpkgs/po4a/patches/dont-pipe-into-onsgmls.patch @@ -0,0 +1,23 @@ +source: https://github.com/mquinson/po4a/commit/61b1c61a6de9aca1f83b3a0d344ec6cba86b753c +Directly pass the file as a parameter to onsgmls instead of piping the input + +--- a/lib/Locale/Po4a/Sgml.pm.orig ++++ b/lib/Locale/Po4a/Sgml.pm +@@ -405,7 +405,7 @@ + print $tmpfh $origfile; + close $tmpfh + or die wrap_mod( "po4a::sgml", dgettext( "po4a", "Cannot close tempfile: %s" ), $! ); +- if ( system("onsgmls -p < $tmpfile") ) { ++ if ( system("onsgmls -p $tmpfile") ) { + unlink($tmpfile); + die wrap_mod( + "po4a::sgml", +@@ -858,7 +858,7 @@ + print $tmpfh $origfile; + close $tmpfh or die wrap_mod( "po4a::sgml", dgettext( "po4a", "Cannot close tempfile: %s" ), $! ); + +- my $cmd = "onsgmls -l -E 0 -wno-valid < $tmpfile" . ( $debug{'onsgmls'} ? "" : " 2>/dev/null" ) . " |"; ++ my $cmd = "onsgmls -l -E 0 -wno-valid $tmpfile" . ( $debug{'onsgmls'} ? "" : " 2>/dev/null" ) . " |"; + print STDERR "CMD=$cmd\n" if ( $debug{'generic'} or $debug{'onsgmls'} ); + + open( IN, $cmd ) || die wrap_mod( "po4a::sgml", dgettext( "po4a", "Cannot run onsgmls: %s" ), $! ); diff --git a/srcpkgs/po4a/template b/srcpkgs/po4a/template index c0094f9eaa9c..b53e82e65d1f 100644 --- a/srcpkgs/po4a/template +++ b/srcpkgs/po4a/template @@ -1,6 +1,6 @@ # Template file for 'po4a' pkgname=po4a -version=0.63 +version=0.65 revision=1 build_style=perl-ModuleBuild _perldeps="perl perl-Text-WrapI18N perl-Term-ReadKey perl-Unicode-LineBreak @@ -9,9 +9,10 @@ hostmakedepends="${_perldeps} perl-Locale-gettext perl-Module-Build gettext libxslt docbook-xsl" makedepends="${_perldeps} perl-Locale-gettext perl-Module-Build" depends="${_perldeps} opensp gettext" +checkdepends="docbook opensp perl-Test-Pod texlive" short_desc="PO for anything (po4a) project to ease translations using gettext tools" maintainer="newbluemoon " license="GPL-2.0-or-later" homepage="https://po4a.org/" distfiles="https://github.com/mquinson/po4a/archive/v${version}.tar.gz" -checksum=534a050af6e8d8d2acd5dd32b66c9a15f64106f022efef72cd82c175de34e595 +checksum=5900bc5ecd6727b74ec4770dddd461fbf14fe23a4c29507a0c2f35a78ad45b4c