pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/intltool Adjust regex patterns used for line ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b4157b153fe5
branches: trunk
changeset: 518033:b4157b153fe5
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Aug 29 14:03:39 2006 +0000
description:
Adjust regex patterns used for line matching in translation catalogs
to generate less back tracing. On DragonFly 1.6 (but not 1.4) Perl
would hit the stack size in wm/metacity's dz.po otherwise.
Thanks to walt <wa1ter%myrealbox.com@localhost> for the tracing down the faulting
expression.
Bump revision.
diffstat:
textproc/intltool/Makefile | 3 ++-
textproc/intltool/distinfo | 3 ++-
textproc/intltool/patches/patch-aa | 30 ++++++++++++++++++++++++++++++
3 files changed, 34 insertions(+), 2 deletions(-)
diffs (58 lines):
diff -r f4de6f450fa1 -r b4157b153fe5 textproc/intltool/Makefile
--- a/textproc/intltool/Makefile Tue Aug 29 14:02:22 2006 +0000
+++ b/textproc/intltool/Makefile Tue Aug 29 14:03:39 2006 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.36 2006/05/30 22:19:53 wiz Exp $
+# $NetBSD: Makefile,v 1.37 2006/08/29 14:03:39 joerg Exp $
#
DISTNAME= intltool-0.35.0
+PKGREVISION= 1
CATEGORIES= textproc devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/intltool/0.35/}
EXTRACT_SUFX= .tar.bz2
diff -r f4de6f450fa1 -r b4157b153fe5 textproc/intltool/distinfo
--- a/textproc/intltool/distinfo Tue Aug 29 14:02:22 2006 +0000
+++ b/textproc/intltool/distinfo Tue Aug 29 14:03:39 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.19 2006/05/30 22:19:53 wiz Exp $
+$NetBSD: distinfo,v 1.20 2006/08/29 14:03:39 joerg Exp $
SHA1 (intltool-0.35.0.tar.bz2) = 5e4e90e79696dbca1798753bd4135aa8556887f4
RMD160 (intltool-0.35.0.tar.bz2) = 00cd68879d9743f52c03ca723f20ac0aab6e79e0
Size (intltool-0.35.0.tar.bz2) = 129933 bytes
+SHA1 (patch-aa) = 8b28063597bd942b016d96ffc842197399ef818e
diff -r f4de6f450fa1 -r b4157b153fe5 textproc/intltool/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/intltool/patches/patch-aa Tue Aug 29 14:03:39 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.6 2006/08/29 14:03:39 joerg Exp $
+
+--- intltool-merge.in.in.orig 2006-08-28 10:58:43.000000000 +0200
++++ intltool-merge.in.in
+@@ -415,7 +415,7 @@ sub create_translation_database
+ {
+ $nextfuzzy = 1 if /^#, fuzzy/;
+
+- if (/^msgid "((\\.|[^\\])*)"/ )
++ if (/^msgid "((\\.|[^\\]+)*)"/ )
+ {
+ $translations{$lang, $msgid} = $msgstr if $inmsgstr && $msgid && $msgstr;
+ $msgid = "";
+@@ -431,14 +431,14 @@ sub create_translation_database
+ $nextfuzzy = 0;
+ }
+
+- if (/^msgstr "((\\.|[^\\])*)"/)
++ if (/^msgstr "((\\.|[^\\]+)*)"/)
+ {
+ $msgstr = unescape_po_string($1);
+ $inmsgstr = 1;
+ $inmsgid = 0;
+ }
+
+- if (/^"((\\.|[^\\])*)"/)
++ if (/^"((\\.|[^\\]+)*)"/)
+ {
+ $msgid .= unescape_po_string($1) if $inmsgid;
+ $msgstr .= unescape_po_string($1) if $inmsgstr;
Home |
Main Index |
Thread Index |
Old Index