pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/po4a po4a: updated to 0.68



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a0559d0fb46f
branches:  trunk
changeset: 388216:a0559d0fb46f
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Nov 15 08:54:12 2022 +0000

description:
po4a: updated to 0.68

v0.68

Project organization:

Add a deprecation warning to po4a-translate and po4a-updatepo stating that po4a is the prefered interface.
Rewrite the po4a-gettextize documentation [Mt].
Rewrite the intro of po4a doc, and add a Quick start tutorial [Mt].

gettextization:

Rework completely the deduplication of msgids introduced in v0.67.

Markdown:

Allow lists to start the line with no leading spaces before the '-' sign. This uncovers a bug in our test suite that was enforcing the buggy behavior :( [Mt]
Properly deal with fenced div blocks

Man:

Bold text should never be wrapped as groff seems to reset the font on new line [Mt].
Properly deal with comments around macro definitions [Mt]


v0.67

Asciidoc:

Support Hugo shortcode on macros [Danilo G. Baio]
Support automatically numbered callouts [J.N. Avila]
Support line breaks [J.N. Avila]

gettextization:

Deduplicate the msgids, to prevent the structure desynchronizations
when the same string is used at several locations, with mismatching types.
Add some tests for the gettextization feature. [mquinson]

po4a-translate:

Do not check whether the po file is uptodate, as it's impossible to do
that correctly when several master files are merged in the same POT.

Man:

Improve the error message when using '.de', '.if', '.ie' to hint about
the option 'groff_code=verbatim|translate' [mquinson]
Implement '.el' (else branch) as translate_joined [mquinson]
Implement '.de1' (define with no check) as '.de' [mquinson]
Implement '.dei', '.dei1' (define with subst) [MQ]
Implement '.it' (input trap) as untranslated [mquinson]
Make a sensible warning when user-defined macros are not explained to po4a
with the 'untranslated' option and friends. [mquinson]

Markdown:

New option 'yfm_lenient' to proceed even if the YAML Front Matter parser fails.
Useful when your file starts with an horizontal ruler that is not a YFM.
This introduces a NEW DEPENDENCY: Syntax::Keyword::Try
Do not quote the YFM lists to not break them [mquinson].
Thanks @dbaio for the analysis and @ynojima for an initial patch in doc-l10n-kit.

xHTML:

Add a test for tables and stop claiming that they may be broken

Other bug fixes:

Hide an ugly warning about uninitialized string

diffstat:

 textproc/po4a/Makefile                     |   7 +++----
 textproc/po4a/distinfo                     |  10 +++++-----
 textproc/po4a/patches/patch-Po4aBuilder.pm |  20 ++++++++++----------
 3 files changed, 18 insertions(+), 19 deletions(-)

diffs (77 lines):

diff -r f51c99c6efa6 -r a0559d0fb46f textproc/po4a/Makefile
--- a/textproc/po4a/Makefile    Tue Nov 15 08:52:19 2022 +0000
+++ b/textproc/po4a/Makefile    Tue Nov 15 08:54:12 2022 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.51 2022/06/28 11:36:48 wiz Exp $
+# $NetBSD: Makefile,v 1.52 2022/11/15 08:54:12 adam Exp $
 
-DISTNAME=      po4a-0.66
-PKGREVISION=   2
+DISTNAME=      po4a-0.68
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mquinson/}
 GITHUB_RELEASE=        v${PKGVERSION_NOREV}
@@ -41,7 +40,7 @@
 SUBST_FILES.path=      po4a
 SUBST_MESSAGE.path=    Fix msgmerge command path (not found)
 SUBST_STAGE.path=      pre-configure
-SUBST_SED.path=                -e 's|\"msgmerge\"|\"${PREFIX}/bin/msgmerge\"|;'
+SUBST_SED.path=                -e 's|"msgmerge"|"${PREFIX}/bin/msgmerge"|;'
 
 .include "../../devel/gettext-tools/buildlink3.mk"
 .include "../../lang/perl5/module.mk"
diff -r f51c99c6efa6 -r a0559d0fb46f textproc/po4a/distinfo
--- a/textproc/po4a/distinfo    Tue Nov 15 08:52:19 2022 +0000
+++ b/textproc/po4a/distinfo    Tue Nov 15 08:54:12 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.23 2022/01/23 10:04:55 schmonz Exp $
+$NetBSD: distinfo,v 1.24 2022/11/15 08:54:12 adam Exp $
 
-BLAKE2s (po4a-0.66.tar.gz) = 75f02908c46cf6426965892963db39455e6826595697cb03ddb6b1dca9d49575
-SHA512 (po4a-0.66.tar.gz) = f72e1267cbd6ced01ecc362c327b1634c47dff15398b48644548d28e01ba91108d5626e6d4abcfcb360697e4c0affa3228c6993653ce8f257acbbb3d7ae20fc4
-Size (po4a-0.66.tar.gz) = 4240059 bytes
-SHA1 (patch-Po4aBuilder.pm) = ad1db22d66304ca944ec598a4fe3e0ea0be7cf50
+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
diff -r f51c99c6efa6 -r a0559d0fb46f textproc/po4a/patches/patch-Po4aBuilder.pm
--- a/textproc/po4a/patches/patch-Po4aBuilder.pm        Tue Nov 15 08:52:19 2022 +0000
+++ b/textproc/po4a/patches/patch-Po4aBuilder.pm        Tue Nov 15 08:54:12 2022 +0000
@@ -1,11 +1,11 @@
-$NetBSD: patch-Po4aBuilder.pm,v 1.6 2022/01/23 10:04:55 schmonz Exp $
+$NetBSD: patch-Po4aBuilder.pm,v 1.7 2022/11/15 08:54:13 adam Exp $
 
 (1) ryoon: remove gzip at initial import
 (2) mef: Add PerlIO::F_UTF8 () macro
 (3) mef: to avoid --previous option is said unknown to msgmerge
     (but sounds strange)
 
---- Po4aBuilder.pm.orig        2022-01-02 00:10:18.000000000 +0000
+--- Po4aBuilder.pm.orig        2022-09-04 14:32:26.000000000 +0000
 +++ Po4aBuilder.pm
 @@ -9,6 +9,8 @@ use File::stat;
  
@@ -33,14 +33,14 @@
 -        unlink "$file" || die;
      }
  
-     # Install the manpages written in XML DocBook
-@@ -252,9 +252,7 @@ sub ACTION_man {
-               print "Convert $outdir/$outfile.$section (online docbook.xsl file). ";
-               system("xsltproc -o $outdir/$outfile.$section --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $file") and die;
-           }
--            system ("gzip -9 -f $outdir/$outfile.$section") and die;
+     if ($^O ne 'MSWin32') {
+@@ -253,9 +253,7 @@ sub ACTION_man {
+             print "Convert $outdir/$outfile.$section (online docbook.xsl file). ";
+             system("xsltproc -o $outdir/$outfile.$section --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $file") and die;
+             }
+-                system ("gzip -9 -f $outdir/$outfile.$section") and die;
+             }
+-            unlink "$file" || die;
          }
--        unlink "$file" || die;
      }
  }
- 



Home | Main Index | Thread Index | Old Index